Sorry for this question as it is very specific.
I have a JQuery validation RegEx
that I would like to use on the back end too:
var forNames = new RegExp("^[^0-9<>'\"/;`%]*$");
I tried in PHP
preg_match('/^[^0-9<>\'\"/;`%]{2,42}$/', $first_name) // I also want to keep the length between 2 and 42 here)
but it does not work, I get Unknown modifier ';' in
The other question, similar to this one is what this person is asking here
Converting Javascript Regex to PHP
I tried his solution, copying the php email validation regex
into JQuery
with no luck
Thank you
Ps I just unedited what i had added to the regex cause i didnt see it already had answers and it was confusing