Forum Moderators: coopster
If you are going to go that route you need to escape the period like so:
[^A-Za-z0-9@\.\s]
You can also use something like this:
[^\w@\.\s]
Good luck :)
Part of a pattern that is in square brackets is called a "character class". In a character class the only meta-characters are:\
general escape character
^
negate the class, but only if the first character
-
indicates character range
]
terminates the character classResource: Pattern Syntax [php.net]
However, it doesn't hurt to escape it.