Get all strings matching given RegExp

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Apr 3 10:08:21 EDT 2008


En Thu, 03 Apr 2008 06:50:52 -0300, Alex9968 <noname9968 at gmail.com>  
escribió:

> Can I get sequence of all strings that can match a given regular
> expression? For example, for expression '(a|b)|(x|y)' it would be ['ax',
> 'ay', 'bx', 'by']

See this thread:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/bc6e305844aeee82/

-- 
Gabriel Genellina




More information about the Python-list mailing list