^([a-zA-Z0-9_\-\.]+ # any character repeated from the set memorized into $1
)@ # followed by an @
([a-zA-Z0-9_\-\.]+) # any character repeated from the set memorized into $2
\.([a-zA-Z]{2,5})$ # any alphabetic character in both cases 2 - 5 in length
into $3

It looks like it will match an email address 
-----Original Message-----
From: newBee [mailto:[EMAIL PROTECTED] 
Sent: 24 October 2007 01:07
To: beginners@perl.org
Subject: Trying to figure the Regex Please Help

^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$


--
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/



This e-mail is from the PA Group.  For more information, see
www.thepagroup.com.

This e-mail may contain confidential information.  Only the addressee is
permitted to read, copy, distribute or otherwise use this email or any
attachments.  If you have received it in error, please contact the sender
immediately.  Any opinion expressed in this e-mail is personal to the sender
and may not reflect the opinion of the PA Group.

Any e-mail reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to