def invregexp(regex):
 invReGenerator = GroupEmitter(parser().parseString(regex)).make_generator()
 return invReGenerator()

def invregexp ( regex ) : invReGenerator = GroupEmitter ( parser ( ) . parseString ( regex ) ) . make_generator ( ) return invReGenerator ( )
call this routine as a generator to return all the strings that match the input regular expression .