remove special characters using core java

Hi;

How can we remove the extra characters(-,_,=) in a string using core java.We can do it using validators in struts but i need to do it using core java.So Any body Plz show me an option.

Ex: 1234.56-789_12

I need to return the above String as 12345678912.

Thanks in advance

[306 byte] By [oasis.deserta] at [2007-11-27 7:08:30]
# 1
String.charAtCharacter.isDigitStringBuffer.appendStringBuffer.toString
CeciNEstPasUnProgrammeura at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 2
System.out.println("1234.56-789_12".replaceAll("^0-9]",""));
BIJ001a at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 3
One day I'm going to study regex. ;) (Your missing a bracket by the way.)
CeciNEstPasUnProgrammeura at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 4
[^0-9] == \D; )
prometheuzza at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 5
> (Your missing a bracket by the way.)Yeah, sorry: System.out.println("1234.56-789_12".replaceAll("[^0-9]",""));
BIJ001a at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 6
> [^0-9] == \DYes - but I frequently use [0-9] or [^0-9] because in my view it reads better.
sabre150a at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...
# 7
> Yes - but I frequently use [0-9] or [^0-9] because in> my view it reads better.You've got a point.
prometheuzza at 2007-7-12 19:00:02 > top of Java-index,Java Essentials,Java Programming...