commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Torres <alexandre.tor...@gmail.com>
Subject Re: using masks
Date Tue, 19 Apr 2005 19:37:35 GMT
That's what I'm doing :-)
but it's not very much plugabble. I was thinking about something in
the xml rules, that may work in javascript too :)

On 4/19/05, Scovetta, Michael V <Michael.Scovetta@ca.com> wrote:
> Alex,
> 
> I'm sure there's a more elegant solution, but wouldn't something like:
>         s = s.replaceAll("[^\\d]", "");
> work?
> 
> Michael Scovetta
> Computer Associates
> Senior Application Developer
> 
> -----Original Message-----
> From: Alexandre Torres [mailto:alexandre.torres@gmail.com]
> Sent: Tuesday, April 19, 2005 8:27 AM
> To: commons-user@jakarta.apache.org
> Subject: using masks
> 
> Hi.
> I'd like to know if there is something in the mask to remove
> formatting characters like "- / ..."
> ex:
> zip code 01234-123
> (submited)
> 01234123
> (received in the form setter).
> 
> Thanks!
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message