Yes, it'll work if the variable %spotline contains the string you want to match. The regex will catch the number before the decimal point and then compare it to see if it's within the range 28000 to 29700, as shown. I don't know what your actual script looks like. The example I've come up with above is merely based on your description.