On Sun, 18 Mar 2001, Randal L. Schwartz wrote:
> Mathieu> If you look at Merlyn's post, you'll notice that the big
> Mathieu> regexp validates most kinds of URL. You can then extract the
> Mathieu> 5 lines that apply to email addresses (starting at
> Mathieu> "(?:mailto:")
> Oh, how embarassing!  I posted the URL matcher, not the Email matcher.

Ok. And somehow, the URL matcher's email matcher is more simple than the
"real" email matcher???

> Here's the email matcher, from Jeffrey Fredl's "Mastering Regular
> Expressions" book:
>     [\040\t]*(?:\([^\\\x80-\xff\n\015()]*(?:(?:\\[^\x80-\xff]|\([^\\\x80-\
>     xff\n\015()]*(?:\\[^\x80-\xff][^\\\x80-\xff\n\015()]*)*\))[^\\\x80-\xf
> Mathieu> I'll assume Merlyn's post's purpose is to show off Abigail's ability to
> Mathieu> write code that looks like the output of a compiler.
> Mathieu> A big improvement to the regexp (the email part or the whole)
> Mathieu> would be to rewrite it as a bunch of functions that each
> Yes, that's how this regex was generated!  The text is detailed
> in Jeffrey's book.

Then WHY THE HELL are you pasting what _is_ basically "compiler output" in
a mailing list like this? This is not alt.binaries.sex.regexp!

matju