I need to clear my string from the following substrings:
\n
\uXXXX
(X
being a digit or a character)
e.g. "OR\n\nThe Central Site Engineering\u2019s \u201cfrontend\u201d, where developers turn to"
-> "OR The Central Site Engineering frontend , where developers turn to"
I tried using the String method replaceAll but dnt know how to overcome the \uXXXX issue as well as it didnt work for the \n
String s = "\\n";
data=data.replaceAll(s," ");
how does this regex looks in java?
thanks for the help