expressive-regex-0.4.5
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | expressive-regex-0.4.5 |
| نام | expressive-regex |
| نسخه کتابخانه | 0.4.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | fsadannn |
| ایمیل نویسنده | fsadannn@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/expressive-regex/ |
| مجوز | MIT |
# Expressive Regex
<img alt="PyPI - License" src="https://img.shields.io/github/license/fsadannn/expressive_regex"> <img alt="PyPI - License" src="https://travis-ci.org/fsadannn/expressive_regex.svg"> <img alt="Codecov" src="https://img.shields.io/codecov/c/github/fsadannn/expressive_regex.svg">
This project was made with inspiration from [Super Expressive for JavaScript](https://github.com/francisrstokes/super-expressive).
Expressive Regex allow you to build regular expressions in almost natural language and without external dependency.
[Documentation](https://fsadannn.github.io/expressive_regex/)
**Example**
to match a telephone number that can be in the format 555-555-555, 555 555 555 or 555555555.
```Python
ExpressiveRegex()\
.exactly(2).group\
.oneOrMore.digit\
.optional.setOfLiterals\
.char('-')\
.whitespaceChar\
.end()\
.end()\
.oneOrMore.digit\
.toRegexString()
```
```Python
"(?:\d+[\-\s]?){2}\d+"
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.1,<4 | Python |
نحوه نصب
نصب پکیج whl expressive-regex-0.4.5:
pip install expressive-regex-0.4.5.whl
نصب پکیج tar.gz expressive-regex-0.4.5:
pip install expressive-regex-0.4.5.tar.gz