Name: Anonymous 2009-03-23 0:52
Hey /prog/,
In python can regex flags be used outside of a compiled regex?
I want to do a bunch of matches on HTML tags without having to compile a regex for each one but I need the DOTALL flag to catch newlines.
re.findall(regex, string, flag) doesn't seem to work.
In python can regex flags be used outside of a compiled regex?
I want to do a bunch of matches on HTML tags without having to compile a regex for each one but I need the DOTALL flag to catch newlines.
re.findall(regex, string, flag) doesn't seem to work.