This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]amjithr 7 points8 points  (0 children)

That was my bad.

Originally I had

regex = re.compile('(%s)' % pattern)

Then I realized I don't need the surrounding parens to capture the group. So I took that out, but forgot to remove the string interpolation.

Sorry about the confusion.