This code works just as I wanted it to. I had it wrong in the validation.xml file <constant> <constant-name>phone</constant-name>
<constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value> </constant> ----- Original Message ----- From: "Rhet Behler" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, October 30, 2003 6:56 PM Subject: Phone Mask Does anyone know how to set the phone mask in the validation to only accept 3 integers then a dash 3 integers a dash then 4 integers? example: 123-456-7890 would be valid 123-a34-5780 would not be valid right now my phone mask look like this: <constant> <constant-name>phone</constant-name> <constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value> </constant> but it accepts letters and numbers. TIA --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]