title: Replace non-ascii character by ascii code using java regex
body: <p>I have string like this <code>T 8.ESTÜTESTतुम मेरी</code>. Now using java regex i want to replace non-ascii character <code>Ü</code>, <code>तुम मेरी</code> with its equivalent code.</p>
  
  <p>How can i achieve this?</p>
  
  <p>I can replace it with any other string. </p>
  
  <p><code>String str = "T 8.ESTÜTESTतुम मेरी";<br>
  String resultString = str.replaceAll("[^\\p{ASCII}]", "");
  System.out.println(resultString);</code></p>
  
  <p>It prints <code>T 8.ESTTEST</code></p>