How to Remove the Spc Char from a String ?

Hi

I am trying to stream out the file name after useing Timestamp. It throws some exception

So I used the trim method for remove the space and spacial charater. But does't trim even space also.

Please any body help me how to remove the space and spceial characters from my string.

The file name ( String of value)

2c5e773bad5e153cf91d7adabc121e62007-03-30 21:54:43.219.ivwr

the file name after removing will be like this

d2c5e773bad5e153cf91d7adabc121e620070330215443.ivwr

pls help me

Thanks,

Merlin Roshina

[578 byte] By [MerlinRosinaa] at [2007-11-26 23:41:13]
# 1
filename = filename.replaceAll("(?!\\.ivwr$)[- :.]","");
sabre150a at 2007-7-11 15:08:40 > top of Java-index,Java Essentials,Java Programming...
# 2
HaiThanks Lot... Its working file. !byMerlin Roshina
MerlinRosinaa at 2007-7-11 15:08:40 > top of Java-index,Java Essentials,Java Programming...