View Single Post
Join Date: Mar 2007
Posts: 110
Reputation: solsteel is on a distinguished road 
Solved Threads: 31
solsteel solsteel is offline Offline
Junior Poster

Re: Regex for re.match not working as expected.

 
0
  #5
Oct 10th, 2008
If the file name is a variable returned from some source:
  1. >>> s = "c:\test.doc"
  2. >>> s1 = repr(s).strip("'")
  3. >>> s1
  4. 'c:\\test.doc'
  5. >>>
Reply With Quote