RegEx issues

MRAB google at mrabarnett.plus.com
Sat Jan 24 20:37:07 CET 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