Board Logo

excluding characters
kari555 - 1/5/2009 at 09:31 AM

Hi!
Is it possible to exclude certain characters in a field? Lets say:
/' ";:?!()[]{}^|

alpha propably does that:
'alpha' : /^[a-zA-Z.-]*$/,

and it can be extended to include scandinavian alphabets:
'alpha' : /^[a-zA?A?A?A?A?A?A-ZA?A?A?A?A?A?.-]*$/,

But if one would like to use one contact form for all unicode languages it would be nice just to exclude possible harmfull characters - I think, but how to do that?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/