RegEx issues

MRAB google at mrabarnett.plus.com
Sat Jan 24 14:37:07 EST 2009


Roy Smith wrote:
[snip]
> Another trick when you're not 100% what you're looking at is to
> explode the string like this:
> 
 >>>> [c for c in reg]
 > ['\\', '[', '\\', '[', '(', '.', '*', ')', '\\', ']', '\\', ']', ';']
 >
A shorter way is list(reg).



More information about the Python-list mailing list