Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voronind/range-regex
Python integer range regexp generator module
https://github.com/voronind/range-regex
Last synced: 29 days ago
JSON representation
Python integer range regexp generator module
- Host: GitHub
- URL: https://github.com/voronind/range-regex
- Owner: voronind
- License: bsd-2-clause
- Created: 2013-02-23T12:30:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T20:44:17.000Z (over 7 years ago)
- Last Synced: 2024-10-07T11:37:41.409Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 158 KB
- Stars: 45
- Watchers: 6
- Forks: 23
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: license.txt
Awesome Lists containing this project
README
====================================================
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
regex_for_range(12, 34)
generates
::"1[2-9]|2\d|3[0-4]"