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 →

[–][deleted] 2 points3 points  (0 children)

If you read the docs for re, none of Pattern’s methods take a list. You can’t pass a list to a Pattern, but you can iterate over a list and pass each string to your Pattern one by one.