Quote:
Originally Posted by ******
You have so many *s and ?s in there that basically all of the expression can be ignored:
"[A-Z0-9_]*-?\\d+(.\\d+)?"
Basically becomes:
"\\d+"
I.e. will match (but not capture) any numbers anywhere (even the (1) near the start).
|
I'm catching the object's name and some coordinates. Using only "\d+" doesn't take in count negative values and there is no way to know numer's type (float, int, ..).