Exrex - Irregular Methods On Regular Expressions

Exrex is a command line tool too python module that generates all - or random - matching strings to a given regular aspect too more. It's pure python, without external dependencies. There are regular expressions alongside interplanetary space matching strings (eg.: [a-z]+ ), inwards these cases exrex limits the maximum length of the interplanetary space parts. Exrex uses generators, too then the retention usage does non depend on the break of matching strings. Features Generating all matching strings Generating a random matching string Counting the break of matching strings Simplification of regular expressions Installation To install exrex, simply: $ pip install exrex or $ easy_install exrex Usage as python module >>> import exrex >>> exrex.getone('(ex)r\\1') 'exrex' >>> list(exrex.generate('((hai){2}|world!)')) ['haihai', 'world!'] >>> exrex.getone('\d{4}-\d{4}-\d{4...