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 abhiram kagitha <ab...@yahoo.com> on 2004/10/19 18:16:20 UTC
reg expression for name
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
Re: reg expression for name
Posted by Adrian Kamiński <ad...@gmail.com>.
Sorry, my mistake not to check what I send :(
Try: ^[0-9a-zA-Z\-\s]+$ should work well now with your criteria.
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
>
--
http://www.jakarta.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org
Re: reg expression for name
Posted by Adrian Kamiński <ad...@gmail.com>.
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