You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by Adrian KamiĆski <ad...@gmail.com> on 2004/10/19 19:47:15 UTC
Re: reg expression for name
Hi,
Try: ^[-0-9a-zA-Z]+$ or ^[-0-9a-zA-Z:space:]+$
Regards,
Adrian
On Tue, 19 Oct 2004 09:16:20 -0700 (PDT), abhiram kagitha
<ab...@yahoo.com> wrote:
> Help appreciated..
>
> name can be of
>
> 1. digit or alpha numeric
> 2. should not have any special characters other than - or space.
>
> I'm using the above criteria reg expression in validator frame work.
>
> Thanks
> Abhi.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org