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 -- http://mail.python.org/mailman/listinfo/python-list