--> Since version 1.1, the regular expression must start with a ^ and
end with a $ (see example below).
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)



> -----Original Message-----
> From: Leonard Sitongia [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 11, 2004 10:55 PM
> To: Struts Users Mailing List
> Subject: Re: Validator mask boundary matchers don't work
> 
> 
> 
> On May 11, 2004, at 2:52 PM, Leonard Sitongia wrote:
> 
> >
> > On May 11, 2004, at 2:44 PM, Leonard Sitongia wrote:
> >
> >>
> >> I'll try your suggestion.
> >>
> > I tried \w+\s\w+ (plus instead of * in order to require at 
> least one),
> > and it still accepts more than two strings, e.g. "xxx yyy zzz"...
> >
> 
> This worked:
> 
> ^\w+\s\w+$
> 
> In other words, the boundary matchers work when I have the right 
> regexp.  :-)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to