I need a regular expression for “\/” (It is not a V, it is a backslash and a forwardslash(?))
It is okay to only catch the “\” and replace it with a “” nothing.
Tried:
parsed= parsed.replace(Matcher.quoteReplacement("\\/"), "");
parsed= parsed.replace("\\", "");
parsed= parsed.replace("\\\", "");
parsed= parsed.replace("\\\\", "");
None of them works.
Im little confused.
Any help will be appreciated.
Almost there. To remove
\/, use this :\\is a\in a java string, and you need to have\\to have your escaped\in a regex. Hence the\\\\.EDIT :
I may have misunderstood. To remove all
/,simply useNo need to escape, then, but it’s better to use the correct method.