A list comprehension is more traditional, and this should probably be a regex anyway.