Skip to content

magiskboy/py-xeger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-xeger

String generator from Regular Expression

Build Status Code coverage Download PyPi MIT Py version PyPi version

To install, type:

$ pip install py-xeger

To use, type:

>>> from pyxeger import Xeger
>>> x = Xeger(limit=10)  # default limit = 10
>>> x.xeger("/json/([0-9]+)")
'/json/15062213'

About

Code adapted and refactored from the Python library xeger in turn inspired by the Java library Xeger <http://code.google.com/p/xeger/>_.