question on pattern
Ulrich Pfisterer
ulrich.pfisterer at rmb.co.za
Fri Jun 7 05:36:22 EDT 2002
I want to do a pattern match on a string that spans multiple lines (c++
style comments, re.match('(/\*.*?\*/)', filestring)
If I use the re.findall(pattern, string) method it only finds those
matches that are on a single line. If I use re.match(pattern, string,
DOTALL) it spans multiple lines but only finds the first match.
Any help on this one would be greatly appreciated.
More information about the Python-list
mailing list