commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scovetta, Michael V" <Michael.Scove...@ca.com>
Subject RE: using masks
Date Tue, 19 Apr 2005 18:33:35 GMT
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