I'm trying to create a Regex test in JavaScript that will test a string to contain any of these characters:
a...z A..Z 0..9 and & - . '
I have do this but not match:
^[a-zA-Z0-9&.-]
Complete Code:
<field-validator type="regex">
<param name="expression">^[a-zA-Z0-9&.-]+$</param>
<param name="caseSensitive">false</param>
<message key="format.name" />
</field-validator>