problem with regex

abcd codecraig at gmail.com
Fri Jul 28 09:12:40 EDT 2006


sorry i forgot to escape the question mark...

> [code]
> import re
> p = re.compile(r'[A-Za-z]:\\([^/:\*?"<>\|])*')

even when I escape that it still doesnt work as expected.

p = re.compile(r'[A-Za-z]:\\([^/:\*\?"<>\|])*')

p.match('c:\test')  still returns None.




More information about the Python-list mailing list