FYI I noticed User-validation.xml contains the following notation <!-- Can't get regex validation to work --> <!--field name="user.phoneNumber"> <field-validator type="fieldexpression"> (user.phoneNumber.matches('^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$')) <message key="errors.phone"/> </field-validator> </field-->
I was able to successfully use regex validation on my own class by using the format described on the struts.apache.org/2.x website and it worked fine in AppFuse <field name="regexValidatorField"> <field-validator type="regex"> .*\.txt <message><![CDATA[ regexValidatorField must match a regexp (.*\.txt) if specified ]]></message> </field-validator> </field> -- View this message in context: http://www.nabble.com/RegEx-Validation-tf4656256s2369.html#a13304748 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]