REGEX - YourShadow's plugin
#4

Quote:
Originally Posted by ******
View Post
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, ..).
Reply


Messages In This Thread
REGEX - YourShadow's plugin - by Dayrion - 28.07.2018, 03:32
Re: REGEX - YourShadow's plugin - by BlackBank - 28.07.2018, 12:27
Re: REGEX - YourShadow's plugin - by Dayrion - 28.07.2018, 14:55
Re: REGEX - YourShadow's plugin - by Dayrion - 29.07.2018, 10:02

Forum Jump:


Users browsing this thread: 3 Guest(s)