In article <000501c0bd59$b637e7b0$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
}I'm trying to parse the different "parts" of an email address both for
}validation and munging.
}
}I have the following regex:
}([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3})
}
}This works great, except it doesn't accept the country code domains (.au,
}etc). So I changed the number of characters to {2,3} at the end of the
}regex:
}([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
}
Here's a quick patch.. =)
([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
--
Jeff Carnahan - [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]