How can I modify my constant in validation.xml(for validator framework) so that it allows a user to include & along with alphabets , single apostrophe(which is already in there)?
<constant>
<constant-name>somename</constant-name>
<constant-value>^([a-zA-Z]|'|)*$</constant-value>
</constant>
At this point it just lets me add alphabets(be it small or capital) and have a single apostrophe .
This is done so as to allow names like
AB
Macy's
I am facing problem when i try to include &(special character) so as to allow names like
A&B
Thanks