May I know how to approve only letters a-z, A-Z and digits 0-9 and special character $!., with regular expression in php?
preg_match("/^[a-zA-Z0-9$!\.\,]{1,100}$/", $name);
What goes wrong here?
May I know how to approve only letters a-z, A-Z and digits 0-9 and special character $!., with regular expression in php?
preg_match("/^[a-zA-Z0-9$!\.\,]{1,100}$/", $name);
What goes wrong here?
Off of the top of my head
if (preg_match('/^[^a-z\d\$!\.,]$/i', $string)){
// fail
}