HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS

Reddy, Gopikrishna
Hi,
Iam facing a problem like,
ihave an input field it should accept only 2 special characters / and - can u please suggest how can i dothat
 
 
 
Thanks
Gopikrishna Reddy


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS

Alexander Žaťko
Create a bind for that element and put @constraint="matches(.,'^[/|-]$')" into it.


On Feb 28, 2008, at 5:18 AM, Reddy, Gopikrishna wrote:

Hi,
Iam facing a problem like,
ihave an input field it should accept only 2 special characters / and - can u please suggest how can i dothat
 
 
 
Thanks
Gopikrishna Reddy

--
You receive this m! essage as ref="mailto:[hidden email]">[hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS

Reddy, Gopikrishna
Thanks for ur help can u please suggest more as
ihave an input field it should accept numbers (0-9) alphabets (a-z) and only 2 special characters / and -
 
Its  very urgent
 
 
 
Thanks
Gopikrishna Reddy

________________________________

From: Alexander Zatko [mailto:[hidden email]]
Sent: Thu 2/28/2008 12:50 PM
To: [hidden email]
Subject: [ops-users] Re: HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS


Create a bind for that element and put @constraint="matches(.,'^[/|-]$')" into it.


On Feb 28, 2008, at 5:18 AM, Reddy, Gopikrishna wrote:


        Hi,
        Iam facing a problem like,
        ihave an input field it should accept only 2 special characters / and - can u please suggest how can i dothat
         
         
         
        Thanks
        Gopikrishna Reddy

        --
        You receive this m! essage as ref="mailto:[hidden email]">[hidden email] mailing list.
        To unsubscribe: mailto:[hidden email]
        For general help: mailto:[hidden email]?subject=help
        OW2 mailing lists service home page: http://www.ow2.org/wws
       




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

winmail.dat (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: HOW TO MAKE INPUT FIELD ACCEPT ONLY 2 SPECIAL CHARACTERS

Alexander Žaťko
There are many sources of info on the web about regular expressions.  
Just google it:

http://www.google.com/search?hl=en&q=regex&btnG=Google+Search

A.

On Feb 28, 2008, at 8:36 AM, Reddy, Gopikrishna wrote:

> Thanks for ur help can u please suggest more as
> ihave an input field it should accept numbers (0-9) alphabets (a-z)  
> and only 2 special characters / and -
>
> Its  very urgent
>
>
>
> Thanks
> Gopikrishna Reddy
>
> ________________________________
>
> From: Alexander Zatko [mailto:[hidden email]]
> Sent: Thu 2/28/2008 12:50 PM
> To: [hidden email]
> Subject: [ops-users] Re: HOW TO MAKE INPUT FIELD ACCEPT ONLY 2  
> SPECIAL CHARACTERS
>
>
> Create a bind for that element and put @constraint="matches(.,'^[/|-]
> $')" into it.
>
>
> On Feb 28, 2008, at 5:18 AM, Reddy, Gopikrishna wrote:
>
>
> Hi,
> Iam facing a problem like,
> ihave an input field it should accept only 2 special characters /  
> and - can u please suggest how can i dothat
>
>
>
> Thanks
> Gopikrishna Reddy
>
> --
> You receive this m! essage as ref="mailto:[hidden email]">[hidden email]
>  mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
> <winmail.dat>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws