I'm using the regex statement I found in the code library, which goes like this:
ereg("([0-9,a-z,A-Z]+)(.,)@(.,,-)
.{2}([0-9,a-z,A-Z])?$",$mail)
I want to allow addresses with the '+' character in them, such as blah+something@blah.com. I tried adding a + to the second character class in the expression, so that it read:
ereg("([0-9,a-z,A-Z]+)(+.,)@(.,,-)
.{2}([0-9,a-z,A-Z])?$",$mail)
but it didn't work. Advice anyone?
spyrral