Aditya Sirohi wrote:
Without actually
testing it, my first instinct says that the issue is at line 10 -- specifically the replacement
string that was created at line 8. The second parameter to the replaceAll() method is not a regular
java string -- it is a regex replacement string. With a regex replacement string, the backslash has special meaning, so if you want to replace with a literal backslash you need to escape the backslash.
Henry