I want to filter strings in a list based on a regular expression.
Is there something better than [x for x in list if r.match(x)]
?
I want to filter strings in a list based on a regular expression.
Is there something better than [x for x in list if r.match(x)]
?