Forum: Python Oct 9th, 2008 |
| Replies: 4 Views: 801 Ok, I'm not used to that yet, in PHP if I encased the string in ' it would have not evaluated the \t, or any other special character.
Thanks. |
Forum: Python Oct 9th, 2008 |
| Replies: 4 Views: 801 I have the following code:
import re
string = 'c:\test.doc'
if re.match(r":\\[0-9a-z]", string):
##r":\\[0-9a-z]" should match ':\t'
print 'true'
else:
print 'false' |