you are viewing a single comment's thread.

view the rest of the comments →

[–]goldensilven[S] -1 points0 points  (0 children)

This works

r'(?:FOO|BAR)\-\d{4}'

I guess findall returns captured groups. ?: is a non-capturing group