How to remove invalid characters from a string?
<p>I have no idea how to remove invalid characters from a string in Java. I'm trying to remove all the characters that are not numbers, letters, or ( ) [ ] . How can I do this?</p>

<p>Thanks</p>
