RE Despair - help required
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Thu Aug 25 06:46:52 EDT 2005
Yoav enlightened us with:
> I am trying the following:
>
> re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>
> and I get a return of NoneType, and I have no idea why.
Because you don't match a carriage return "\r".
> I know that I missing something here, but I really can't figure out
> why (I bet it's something obvious).
Use forward slashes instead of backward slashes. And go nag at
Microsoft for using the most widely used escape character as a path
separator...
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list