title: java remove a pattern from string using regex
body: <p>I need to clear my string from the following substrings:</p>
  
  <p><code>\n</code></p>
  
  <p><code>\uXXXX</code> (<code>X</code> being a digit or a character)</p>
  
  <p>e.g. <code>"OR\n\nThe Central Site Engineering\u2019s \u201cfrontend\u201d, where developers turn to"</code></p>
  
  <p>-> <code>"OR The Central Site Engineering frontend , where developers turn to"</code><br>
  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</p>
  
  <pre><code>String s = "\\n";  
  data=data.replaceAll(s," ");
  </code></pre>
  
  <p>how does this regex looks in java?</p>
  
  <p>thanks for the help</p>