G
Guest
Hi Folks,
I am having some trouble with a search control I have written, basically I
want the user only to input the characters a-z, 0-9, ?, -(hyphen),
'(apostrophe) with a maximum of 50 characters. This is what I am currently
using:
[\d_a-zA-Z0-9?-]{1,50}
However I cannot seem to get the apostrophe to work correctly. Can anybody
help at all please.
I am having some trouble with a search control I have written, basically I
want the user only to input the characters a-z, 0-9, ?, -(hyphen),
'(apostrophe) with a maximum of 50 characters. This is what I am currently
using:
[\d_a-zA-Z0-9?-]{1,50}
However I cannot seem to get the apostrophe to work correctly. Can anybody
help at all please.