ive been searching and reading tutorials for days now and i cant figure it out🙁
i have an imput feild that visitors to my site can enter information into...
because i will be using the values inside html tags i have to be careful what i allow them to enter.
can somebody tell me what the regular expression is (PCRE-Style) so that only letters or numbers can be entered or leave the feild blank..
ive nearly got it working using
^[A-Z0-9?]^
but if they leave the feild empty they get an invalid response:mad:
if i add * or ? it works ok when they leave the feild blank but it also allows them to enter the dreaded dot
any ideas anyone
this is giving me a right headache😕