title: Remove characters from string regex java
body: <p>Hello guys I'm starting to learn regex and I want to replace some characters from string.</p>
  
  <p>this is my test case:</p>
  
  <p><strong>Example string:</strong> </p>
  
  <pre><code>+52 924 340 2304
  </code></pre>
  
  <p><strong>Expected output:</strong></p>
  
  <pre><code>09243402304
  </code></pre>
  
  <p>This is what I've tried:</p>
  
  <pre><code>String number = cursor.getString(col_number).replace("\\d{2}", "");
  </code></pre>
  
  <p>But I can't seem to get my expected output. Any help? I would gladly appreciate your help. Thanks.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Also, I want to remove all whitespace characters from the string and I forgot to add if the string has other characters like (,),-</p>