a simple implementation of regex in python
Switch branches/tags
Nothing to show
Latest commit e579129 Mar 8, 2012 @colinmarc colinmarc readme
Failed to load latest commit information.
README.md readme Mar 9, 2012
pyregex.py greedy matching Mar 9, 2012
test.py initial commit Feb 18, 2012


this is a simple implementation of regex done in python for my own education. usage:

>>> from pyregex import Regex
>>> r = Regex('^abc{2,3}[ed]+')
>>> r.match('something random')
>>> r.match('abccdedededexxx')
>>> r.match('abccdedededexxx', greedy=False)

or, to run the tests, just run python pyregex.py