Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 47191 invoked from network); 6 Oct 2003 12:06:20 -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:06:20 -0000 Received: (qmail 92236 invoked by uid 500); 6 Oct 2003 12:06:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 92223 invoked by uid 500); 6 Oct 2003 12:06:14 -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 92210 invoked from network); 6 Oct 2003 12:06:13 -0000 Received: from unknown (HELO umbongo.flamefew.net) (64.253.103.114) by daedalus.apache.org with SMTP; 6 Oct 2003 12:06:13 -0000 Received: by umbongo.flamefew.net (Postfix on Linux (i386), from userid 500) id 5A561617; Mon, 6 Oct 2003 08:06:11 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by umbongo.flamefew.net (Postfix on Linux (i386)) with ESMTP id 557BB4CE for ; Mon, 6 Oct 2003 08:06:11 -0400 (EDT) Date: Mon, 6 Oct 2003 08:06:11 -0400 (EDT) From: Henri Yandell X-X-Sender: hen@umbongo.flamefew.net To: Jakarta Commons Users List Subject: RE: commons-validator regex validation In-Reply-To: <73E71EF16978D51197180002A56022D20743CA94@ngmnt4mbx03.uk.capitalone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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