I am using Struts 1.3.1 validator (validation.xml, using mask and regular expression), which doesn't support Unicode regular expressions. (I read and I tried)
When it's a whitelist, and unicode, it should be something like this:
^[\p{L}\p{P}\p{Zs}]+
Yet, in my case, I need to filter all "helping characters" and leave out letters only.
Does anyone have an idea of a blacklist regular expression to answer my needs?
I though of this one, but it obviously doesn't cover everything:
^[^&^>^/^<^\\^*^\?^%^:]$
Thanks a lot!