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.4.tar.gz (2.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: range-regex-1.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for range-regex-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fec0910a58786e4094b53a339a4013cecd43cd350da36b8dc4a245a537d47fdf
MD5 bb6e9e9227da8bd8334bc54a17cfe8f8
BLAKE2b-256 f07ab2e2142fe63b0ac3fa5a6374d8cdced52aa4d2a93a131ef70e2be14ddb69

See more details on using hashes here.

Supported by

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