Good day,

Just off the top of my head, try:


Might not have the exact syntax, but, you get the idea.

Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948

> -----Original Message-----
> From: James Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 2:17 PM
> Subject: [PHP] Regex
> I'm trying to come up with a regular expression that will 
> match the TL 
> and Second Level domain names in someone's email address ONLY.
> So, say someone's address is 
> need to match ONLY   It shouldn't matter what 
> the address 
> looks like, I'm looking for any number of digits, a dot, any 
> number of 
> digits, and the end of the line.  The closest thing I can 
> come up with 
> is  /\@.+?(.+\..+)?$/, but, as you can guess, that matches everything 
> except the very first character.  Can anyone help me with this? Thanks
> -- 
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to