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.
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.