title: How can I replace all occurrences of the division sign with a slash in Java?
body: <p>I would like to replace all division signs and multiplication signs in a string with the characters <code>/</code> and <code>*</code>. How can I do that? I already tried it with this method but it does not work. </p>
  
  <pre><code>public static String formatString(String string) {
      String result = string;
      result = string.replaceAll("\\\u00F7", "/"); 
      result = string.replaceAll("\\\u00D7", "*"); 
      return result;
  }
  </code></pre>
  
  <p>And this is were I got the unicode for the division and multiplication signs from:
  <a href="http://www.fileformat.info/info/unicode/char/00f7/index.htm" rel="nofollow">http://www.fileformat.info/info/unicode/char/00f7/index.htm</a>
  <a href="http://www.fileformat.info/info/unicode/char/00d7/index.htm" rel="nofollow">http://www.fileformat.info/info/unicode/char/00d7/index.htm</a></p>