Skip to main content

Python numeric range regular expression generator

Project description

Python numeric range regular expression generator
=========================

Another like packages generates incorrect or excessive patterns.

Installation
=========================
::

pip install range-regex

or

::

git clone git://github.com/dimka665/range-regex.git

Usage
=========================
::

from range_regex import regex_for_range
from range_regex import bounded_regex_for_range

regex_for_range(12, 34)
bounded_regex_for_range(12, 34)

generates

"1[2-9]|2\d|3[0-4]"
"\b(1[2-9]|2\d|3[0-4])\b"

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

range-regex-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file range-regex-1.0.1.tar.gz.

File metadata

File hashes

Hashes for range-regex-1.0.1.tar.gz
Algorithm Hash digest
SHA256 de3fdaa7e935cb0d12ec63b478d554e664fe8aa245ceb755ad3f778f96056a27
MD5 3ab6d8f4fc47ac705c052842822213b8
BLAKE2b-256 f282ce55af26ff31beda1c62627aa8760086637cd0a81ca6e78fd63d26322f06

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