Thread
:
Regex for re.match not working as expected.
View Single Post
•
•
Join Date: Mar 2007
Posts: 110
Reputation:
Solved Threads: 31
solsteel
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:
Help with Code Tags
Python Syntax
(
Toggle Plain Text
)
>>> s =
"c:
\t
est.doc"
>>> s1 =
repr
(
s
)
.
strip
(
"'"
)
>>> s1
'c:
\\
test.doc'
>>>
>>> s = "c:\test.doc" >>> s1 = repr(s).strip("'") >>> s1 'c:\\test.doc' >>>
solsteel
View Public Profile
Find all posts by solsteel