CTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, December 20, 2004 12:12 AM
> Subject: Re: Struts Form Validation Question
>
> > ^([a-zA-Z]+['-\s])*$
> >
> > That's top of my head ... and my head is tired :-( but
Thanks for your help Eddie! Regex worked perfect.
I had given up hope on getting right regex.
Thanks Again!
- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 20, 2004 1
**
>
> Original Message Follows
> From: <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Struts Form Validation Question
> Date: Sun, 19 Dec 2
EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Struts Form Validation Question
Date: Sun, 19 Dec 2004 23:36:48 -0500
Hi,
I am using struts validator plugin. I have form field which requires
following validation:
"Full Name can contain only letters, dashes (-), apsotrophes(') and
^([a-zA-Z]+['-\s])*$
That's top of my head ... and my head is tired :-( but maybe it's
helpful. You need to separate the repeating things from the
non-repeating things, and allow the two of them to be chained multiple
times. Having such complete validation of a name seems error-prone at
best tho
Hi,
I am using struts validator plugin. I have form field which requires
following validation:
"Full Name can contain only letters, dashes (-), apsotrophes(') and
single spaces"
Here is the regex I am using for this validation : ^[a-zA-Z'-\s]*$
The only problem with this regex is that it allows use
6 matches
Mail list logo