I need to validate a user input of about 1,500 characters
Allowed characters are a-z A-Z 0-9
Allowed symbols . , : ? ! and space
Can anyone suggest a preg_match expression for this?
I am using ‘/^[a-zA-Z0-9.,:?! ]+$/’ but it gives error sometimes
I need to validate a user input of about 1,500 characters Allowed characters are
Share
Use escape \ before signs
/^[a-zA-Z0-9\.\,\:\?\!]+$/’