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