> >
> > 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
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:
> >
> >>
> >>
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+$
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
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
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
I'm using Struts 1.1. I have an html:text input field.
I'm trying to constrain the input field to be two strings separated by
a space.
I have tried
\w\s\w
but that allows two *or more* strings separated by spaces, such as "xxx
yyy zzz".
I have tried using the boundary matchers,
7 matches
Mail list logo