Python Implementation of Simple Regex <https://simple-regex.com>
_.
.. image:: https://travis-ci.org/SimpleRegex/SRL-Python.svg?branch=master :target: https://travis-ci.org/SimpleRegex/SRL-Python
You can download and install the latest version of this software from the Python package index (PyPI) as below::
$ pip install srl
✨🍰✨
SRL-Python supports:
Class SRL
takes a Simple Regex Language string as input.
SRL
instance shares exactly same API with re.RegexObject <https://docs.python.org/2/library/re.html#regular-expression-objects>
_::
>>> from srl import SRL
>>> srl = SRL('digit exactly 3 times')
>>> srl.pattern
'[0-9]{3}'
>>> matched = srl.search('123')
>>> matched.group()
'123'
Readthedocs <http://srl-python.readthedocs.io/en/latest/>
_.SRL-Python
uses nose as test runner.::
$ pip install nose
$ nosetests -c ./nose.cfg
SRL is published under the MIT license. See LICENSE
for more information.
Like this project? Want to contribute? Awesome! Feel free to open some pull requests or just open an issue.
Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself below.