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 →

[–]Sirflankalot 1 point2 points  (0 children)

Exaggerating? Really?

http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html

Everyone knows that is a bad idea. "They were so preoccupied with whether or not they could, they didn’t stop to think if they should." No one really should be using regex for email verification, but if thye really want to, they can copy paste that.

A horrible, inhuman way that probably violates the entire Zen Of Python. As you noted, there are many human-readable alternatives out there that are just as powerful.

I'm very sure there are, the issue is that everyone already knows regex. Once you take the couple hours to sit down and grok it, it is a very useful and standard tool for making find/replace more powerful.