Friday afternoon blag fest
Dave Cross
dave at dave.org.uk
Fri Sep 21 13:46:58 BST 2007
Quoting Chris Jack <chris_jack at msn.com>:
> What's the longest regular expression anyone's ever written? Choose
> your own criteria for longest (e.g. #lines, #characters) although I
> suspect pitifully slow might get less respect from the audience....
The email address checker from "Mastering Regular Expressions" will
take some beating.
It's included in Email::Valid.
http://search.cpan.org/src/RJBS/Email-Valid-0.179/lib/Email/Valid.pm
Starts about two thirds of the way down.
Dave...
More information about the london.pm
mailing list