RE: Validator mask boundary matchers don't work

2004-05-11 Thread Van Riper, Mike
> > > > 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"... Are you including the special start of line "^" and end of line "$" characters in your regular expression. Unless y

RE: Validator mask boundary matchers don't work

2004-05-11 Thread Matthias Wessendorf
0: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: > > > >> > >>

Re: Validator mask boundary matchers don't work

2004-05-11 Thread Leonard Sitongia
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+$

Re: Validator mask boundary matchers don't work

2004-05-11 Thread Leonard Sitongia
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"... - To unsubs

Re: Validator mask boundary matchers don't work

2004-05-11 Thread Leonard Sitongia
On May 11, 2004, at 2:39 PM, Robert McBride wrote: That regualar expression will only match exactly one word character then one whitespace character then another word character. (A word character is in the set of a-zA-Z0-9_) Thanks, I appreciate your reply. \w\s\w has been working for me for s

Re: Validator mask boundary matchers don't work

2004-05-11 Thread Robert McBride
Leonard, Lets see if I can help, I hope my regex skills aren't totally rusty. That regualar expression will only match exactly one word character then one whitespace character then another word character. (A word character is in the set of a-zA-Z0-9_) Try using this regex ^\w*\s\w*$ hopefully i