Regex: Mar. 29th UUG Meeting

Matthew Walker rorith at kydance.net
Wed Mar 21 10:59:38 MDT 2007


On Wed, March 21, 2007 10:36 am, Daniel wrote:
> Would this catch my FULL work address webmaster at alpine.k12.ut.us?
>
> -Daniel
>
> On 3/21/07, Von Fugal <von at fugal.net> wrote:
>> * Scott Paul Robertson [Tue, 20 Mar 2007 at 20:02 -0600]
>> > the end, you'll be able to understand what
>> > "(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})" means and why you would care.

No, it wouldn't. I'd reccomend this improvement:

([\w\+\.]+@[a-zA-Z0-9_\.]+?\.[a-zA-Z]{2,6})

Not positive if the + and . need to be escaped in a character range, but it can't hurt.

Also, this won't IP addresses. But it should do a better job than the original. :)

-- 
Matthew Walker
Kydance Hosting & Consulting
LAMP Specialist



More information about the PLUG mailing list