Simplified re.search .

And also, I think, made it a bit clearer.