title: ruby gsub function in java, replaceAll maybe?
body: <p>I've been trying to translate this</p>
  
  <pre><code>    funcFormat = funcFormat.gsub(/sqrt\((.*)\)/,'Math.sqrt(\1)')
  </code></pre>
  
  <p>to this in java</p>
  
  <pre><code>    funcFormat = funcFormat.replaceAll("sqrt((.*))","Math.sqrt($1)"); 
  </code></pre>
  
  <p>or is there any way of formatting math as text?, for example :</p>
  
  <p>2x^2sqrt(x^3/2) to  2xpow2sqrt(xpow3/2) </p>
  
  <p>thank you, and by the way I'm new in this site.</p>