I'm trying to design a regular expression that matches (using
preg_match()) when a string is a well-formed Email address.
So far I have this: /^[A-Z0-9._%\-]+@[A-Z0-9._%\-]+\.[A-Z]{2,4}$/i
I got that from reguar-expressions.inf o. But PHP keeps complaining of
"Unknown modifier 'Z'".
For the life of me I can't figure out how 'Z' is a modifier.
Can anyone help? Thanks much.
preg_match()) when a string is a well-formed Email address.
So far I have this: /^[A-Z0-9._%\-]+@[A-Z0-9._%\-]+\.[A-Z]{2,4}$/i
I got that from reguar-expressions.inf o. But PHP keeps complaining of
"Unknown modifier 'Z'".
For the life of me I can't figure out how 'Z' is a modifier.
Can anyone help? Thanks much.
Comment