How do I match this with re
Sunit Joshi
sjoshi at ingr.com
Thu Sep 4 12:35:18 EDT 2003
Hello All
I have a problem here where I need to find the drive letters in a text
file and replace them with another letter. Now the lines can be as
long as this
6 'C:\pds\bddin64\report\mto\' 'SJOSHI'
'D:\pds\bddin64\report\format\' 'SJOSHI'
with multiple entries for path; i.e. there may be 2, as above or 1 or
more then 2. If I use the expression .*'([A-Z]:).*?', it only matches
the 2nd D: How do I get all the path groups ..??
thanks
Sunit
More information about the Python-list
mailing list