Removing Spaces, Punctuation in Java Code
Posted on 2004-09-24
Does anyone know how to implement the functionality to remove the spaces and punctuation from a String retrieved from a database?
For example, I am trying to remove all the spaces from the following fieldname, certificateName:
"Annual's - Disclosure Form: 2004"
and have it save instead as
Does anyone know a quick and convenient way to do this?
I'm looking for something similar to this:
but for punctuation and spaces.
Any help or advice would be great!!