No project description provided
Project description
Expressive Regex
This project was made with inspiration from Super Expressive for JavaScript.
Expressive Regex allow you to build regular expressions in almost natural language and without external dependency.
Example to match a telephone number that can be in the format 555-555-555, 555 555 555 or 555555555.
ExpressiveRegex()\
.exactly(2).group\
.oneOrMore.digit\
.optional.setOfLiterals\
.char('-')\
.whitespaceChar\
.end()\
.end()\
.oneOrMore.digit\
.toRegexString()
"(?:\d+[\-\s]?){2}\d+"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file expressive_regex-0.4.5.tar.gz
.
File metadata
- Download URL: expressive_regex-0.4.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.1 Linux/4.15.0-1077-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eeaa7422e516c1a4505dcd9377a262e7e7ec6460b3aaa97f926ca3bb0d1a26e |
|
MD5 | db0ef2956530e5847a056fa05f6c29fd |
|
BLAKE2b-256 | bb694da62d93dc9560a01205bd3b73b686fbf7f214d872be9ab46aad2e0139ae |
File details
Details for the file expressive_regex-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: expressive_regex-0.4.5-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.1 Linux/4.15.0-1077-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8a24e63a27ffbe5e8477be16a4e63a9de10f3510afd23ed094159279c3227a |
|
MD5 | 5d5122a8b8f1ea359d947048222e14e8 |
|
BLAKE2b-256 | 54474a1b518bb14ae663013cb84b88f53e923b725383ebf9b86e905284bbc9f7 |