title: Match String having a comma in the middle with a regex
body: <p>I want to try a regex to match my string of this kind like</p>
  
  <pre><code>if (cadena.matches("[0-9],[0-9]")){
  
      Do something} //this being like if the string has numbers before and after the comma
  </code></pre>
  
  <p>Which way can I put this condition? An input example for the match could be <code>cadena = "2,2345"</code></p>
  
  <p>I have tried ".<em>\d+,\d+.</em>" and ".<em>[0-9],[0-9].</em>" I have tried using my last try with "[0-9]+,[0-9]+" this says any more numbers and seems to work</p>
  
  <p>Using the last one solved my question sorry for the effort.</p>