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
expressive_regex-0.4.5.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for expressive_regex-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8a24e63a27ffbe5e8477be16a4e63a9de10f3510afd23ed094159279c3227a |
|
MD5 | 5d5122a8b8f1ea359d947048222e14e8 |
|
BLAKE2b-256 | 54474a1b518bb14ae663013cb84b88f53e923b725383ebf9b86e905284bbc9f7 |