Hy,
i've got a string which looks like "<[EMAIL PROTECTED]>". Now i wanted
to check it with preg_match like this:
if ( preg_match(
'/[\<][a-z]([-a-z0-9_.])*@([-a-z0-9_]*\.)+[a-z]{2, }[\>]/i', $value ) ) {
print "Valid mail address";
} else {
print "Invalid mail address";
}
Unfortunatly this doesn't work. I think, i have to use a different syntax
for the "<" and ">" braces. Can somebody give me a hint?
Thx,
Daniel
--
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]