Skip to main content

No project description provided

Project description

Expressive Regex

PyPI - License PyPI - License Codecov

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.

Documentation

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


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 details)

Uploaded Source

Built Distribution

expressive_regex-0.4.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for expressive_regex-0.4.5.tar.gz
Algorithm Hash digest
SHA256 0eeaa7422e516c1a4505dcd9377a262e7e7ec6460b3aaa97f926ca3bb0d1a26e
MD5 db0ef2956530e5847a056fa05f6c29fd
BLAKE2b-256 bb694da62d93dc9560a01205bd3b73b686fbf7f214d872be9ab46aad2e0139ae

See more details on using hashes here.

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

Hashes for expressive_regex-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8a24e63a27ffbe5e8477be16a4e63a9de10f3510afd23ed094159279c3227a
MD5 5d5122a8b8f1ea359d947048222e14e8
BLAKE2b-256 54474a1b518bb14ae663013cb84b88f53e923b725383ebf9b86e905284bbc9f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page