i want to remove all of the following chars from my string
\">[],-\"
at the moment im doing this. but there must be a more effic
Using the replace / replaceAll methods causes a new Pattern to be compiled each time. So if you are doing this multiple times I would strongly suggest either looping through the characters or creating a single regular expression to use repeatedly.
You could loop through each character, appending them one by one to a StringBuilder() unless they match one of the characters you are removing.
But I'm not sure that'd be a whole lot faster.