Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
voronind committed Jul 10, 2013
1 parent 4491141 commit 77ea99d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
====================================================
Python numeric range regular expression generator
=========================
====================================================

Another like packages generates incorrect or excessive patterns.

Installation
=========================
::
------------

pip install range-regex
``pip install range-regex``

or

::

git clone git://github.com/dimka665/range-regex.git
``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"


0 comments on commit 77ea99d

Please sign in to comment.