Search Results

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: unkwntech
Forum: Python Oct 9th, 2008
Replies: 4
Views: 801
Posted By unkwntech
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
Posted By unkwntech
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'
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC