Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 77885 invoked from network); 6 Oct 2003 12:54:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Oct 2003 12:54:51 -0000 Received: (qmail 50917 invoked by uid 500); 6 Oct 2003 12:54:42 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 50894 invoked by uid 500); 6 Oct 2003 12:54:42 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 50879 invoked from network); 6 Oct 2003 12:54:42 -0000 Received: from unknown (HELO pop-5.dnv.wideopenwest.com) (64.233.207.23) by daedalus.apache.org with SMTP; 6 Oct 2003 12:54:42 -0000 Received: from wideopenwest.com (webmail-1.wideopenwest.com [10.75.12.1]) by pop-5.dnv.wideopenwest.com (8.11.6/8.11.6) with SMTP id h96CshL27748 for ; Mon, 6 Oct 2003 07:54:43 -0500 Sender: mlybarger@wideopenwest.com From: mlybarger@wideopenwest.com Reply-to: mlybarger@wideopenwest.com To: "Jakarta Commons Users List" Subject: RE: commons-validator regex validation X-Mailer: WebMAIL to Mail Gateway v3.0h Date: Mon, 06 Oct 2003 12:54:43 GMT Priority: normal Message-id: <3f816613.6426.1804289383@wideopenwest.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N yes, I'm looking for somthing to validate a string is [a-zA-Z ]+ and am using the validator framework to validate a POJO. (non struts). regarding the issues of extra characters (hyphens, appostrophe, period, etc), i'm just going off the "business requirements"/technical design document i recieved. i'll raise that question back to the business. > > apostrophes "Joseph N'dongo" or something. Also Irish > names like O'Bannon. > any accent/non-latin character. tabs [for lazy space > people]. > full-stops 'Ian St. John'. > > Possibly amphersands if they decide to sign up 'Jack & > Jill Hope-Jones'. > List goes on :) > > On the question itself, I've no idea about Validator, but > sounds like you just want a regex akin to: > > [a-zA-Z ]+ > > Hen > > On Mon, 6 Oct 2003, Hope, Matthew wrote: > > > Just out of interest how are you going to handle double > > barrelled surnames with hyphens? > > > > Matthew Hope-Jones for example > > > > This has become more common as people take both parents > > surnames outside of marriage... > > > > -----Original Message----- > > From: mlybarger@wideopenwest.com > > [mailto:mlybarger@wideopenwest.com] Sent: 06 October > > 2003 12:10 To: commons-user@jakarta.apache.org > > Subject: commons-validator regex validation > > > > > > Is there an example of an alpha only mask (no numbers or > > special characters) for using the commons validator? > > I'm not using the validator within the struts framework. > > I have to validate first name/last name fields only > contains [a-z] [A-Z] or a space. I'm limited to jdk 1.3.1 > (bea wls 6.1) > > > > ---------------------------------------------------------- > > ----------- To unsubscribe, e-mail: > > commons-user-unsubscribe@jakarta.apache.org For > additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > > ********************************************************** > > **************** The information transmitted herewith is > > sensitive information intended only for use by the > individual or entity to which it is addressed. If the > > reader of this message is not the intended recipient, > > you are hereby notified that any review, retransmission, > > dissemination, distribution, copying or other use of, or > > taking of any action in reliance upon this information > is strictly prohibited. If you have received this > > communication in error, please contact the sender and > delete the material from your computer. > > > > ---------------------------------------------------------- > > ----------- To unsubscribe, e-mail: > > commons-user-unsubscribe@jakarta.apache.org For > additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > > ---------------------------------------------------------- > ----------- To unsubscribe, e-mail: > commons-user-unsubscribe@jakarta.apache.org For additional > commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org