commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
Subject RE: commons-validator regex validation
Date Mon, 06 Oct 2003 12:06:11 GMT

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 ]+


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: []
> Sent: 06 October 2003 12:10
> To:
> 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:
> For additional commands, e-mail:
> **************************************************************************
> 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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message