I was wondering what's wrong with my regular expressions.I was trying to remove certain characters in a string with this code
array[i] = array[i].replaceAll("[.,;:?!\"')\\(]","");
Everything works except for the \ character, it wasn't removed from string. Also I tried this code
array[i] = array[i].replaceAll("[.,;:?!\"')(\\]","");
and it gave me an error.
What am I doing wrong?
array[i] = array[i].replaceAll("[.,;:?!\\\"')(\]","");