I need to remove some substrings in strings (in a large dataset). The substrings often contain special characters, like these: ., ^, /,... and replaceAll() would treat them as s
Just use String.replace(String, String), not replaceAll. String.replace doesn't treat its argument as a regex.
replaceAll
String.replace