I am using the following regular expression to check name format.
/^([A-Za-z0-9\[email protected]])*$/
Name should contain only alphanumeric characters,_,@,.,-and space. But this regular expression is not restricting '\'.
try this
[A-Za-z_-@. 0-9]{1,250}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With