[issue15768] re.sub() with re.MULTILINE not replacing all occurrences

2012-08-22 Thread Eric Cousineau
New submission from Eric Cousineau: [Copying post I made here: http://stackoverflow.com/questions/12082886/bug-in-python-regex-re-sub-with-re-multiline] I'm noticing some odd behavior in Python's Regex library, and I'm not sure if I'm doing something wrong. If I run a regex on it using

[issue15768] re.sub() with re.MULTILINE not replacing all occurrences

2012-08-22 Thread Eric Cousineau
Eric Cousineau added the comment: Looks like I was just writing my code incorrectly - I should have been using re.sub(..., flags = re.MULTILINE). That explains it. -- resolution: - invalid status: open - closed ___ Python tracker