I noticed through trying to figure this out that sometimes the text is badly formatted, meaning sometimes cyan is followed by another color changed instead of a number. That's why the pattern has to match exactly (^11 [0-9]{2,}).

It sounds like we can't actually find the position because of this so is there another way to approach it? Is there any way to copy the matched regex pattern into a variable and then $abs the variable to get rid of the color coding?

Edit: I actually got it working using $regex, $regml, and your $pos method, so I think the problem is solved. Still need to do a little more testing to make sure though.

Thanks for the help maroon! Greatly appreciated!

Last edited by beer; 19/10/17 05:10 AM.