RE Despair - help required

Yoav yoav_artzi at il.vio.com
Thu Aug 25 15:26:38 CEST 2005


Thanks guys. Issue solved.
I am also going to give Microsoft a call about it. Any other issues you 
want me to raise while I am talking to them?


Cheers.

Robert Kern wrote:
> Yoav wrote:
> 
>>I am trying the following:
>>
>>re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>>
>>and I get a return of NoneType, and I have no idea why. I know that I 
>>missing something here, but I really can't figure out why (I bet it's 
>>something obvious). I also tried this RE on KODOS and it works fine 
>>there, so I am really puzzled.
>>
>>Any ideas?
> 
> 
> Look at the second string. It has "\r" in the middle of it where you
> really want "\\r" (or alternatively r"c:\ret_files").
> 



More information about the Python-list mailing list