Home : General : Perl Programming :

General: Perl Programming: Re: [AndyNewby] PHP Regex....: Edit Log

Here is the list of edits for this post
Re: [AndyNewby] PHP Regex....
Your top and bottom regexs aren't the same. The second one has a possible problem which is [b]

Try this:

!preg_match("/^\S+@\S+\.\S+/",$email)

Im not sure if regex works the same in php but if so then above should work.

Last edited by:

RedRum: Jan 16, 2002, 7:29 AM

Edit Log: