I have the following:
for (int i = 0; i < result.length(); i++)
{
if(result.substring(i).matches("[0-9]+") && result.substring(i+1).matches("[0-9]+"))
{
result += ",";
}
}
What I want to do is to look in a string if there is a character (sign) and separate it from the digits, what the above code does is search the string for a number and if the next character is also a number from 0 to 9 put a comma to separate it from the signs, but the error is in the fact that it only serves for 2 digits and not 3 or 4 or more that's what I want to finish doing thanks. If you do not explain well or understood something of what I wrote please write me in the comments I am new to this platform also thank you very much !!