Page 1 of 1

Unexpected regex results...Greedy ignored...

Posted: Thu Oct 16, 2008 7:02 pm
by TetleyTeaGuy
This is my source text...


and this is my regex.. in batch replace. Using the latest trial of 4.1. ( I own ver 3.0 and love it, Thanks a bunch Roman!)

however it does not match the complete 0.70 which is what I am trying to replace....(using $1-999 so that 0.70 is replaced with -999). It only matches the first 0 and not the complete 0.70.

If you use the following regex

then it works (that is it replaces 0.70 with -999), but this is unexpected...It appears to not respect the greedy quantifier.