$rex = \'/^[^<,\"@?=>|;#]$/i\';
I\'m having trouble with this regular expression. The idea is that the input fields are checked for certain chara
You're asking for only one character. If you want multiple characters, get the pattern repeated, either like this (one or more times):
$rex = '/^[^<,"@?=>|;#]+$/i';
or like this (zero or more times):
$rex = '/^[^<,"@?=>|;#]*$/i';