D'oh. Forgive my stupidity :). I had definitely been working on that too long. I completely wasn't thinking about applying the mask to the entire string. I do have a question, though. Are the masks 100% compatible with perl's regexp? If not, is there some documentation about what is and is not valid?
Michael Blake Day Artistry Studios - e-commerce design, implementation and hosting email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: Richard Kirby [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 11:29 AM To: Turbine Users List Subject: RE: Problem with Intake in Turbine 2.1 > -----Original Message----- > From: Blake Day [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2002 16:14 > To: Turbine Users List > Subject: Problem with Intake in Turbine 2.1 > > <rule mask="[A-Za-z]">Please enter a valid first name.</rule> Your mask needs to be something like "^[A-Za-z]*$" to work. The mask in your example is just looking for at least one occurance in the input string of an alpha character. The ^ and $ force the match over the whole input string, and the * picks up all the characters between the start and end. Notice that if you want space to be allowed in the match, then also include the space char in the mask pattern. Richard. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
