in reply to Re^2: Matches but not substituting
in thread Matches but not substituting

This sounds like an excellent time to introduce a test suit for the script. Actually any time is an excellent time to introduce unit tests, but right now is mostly the best time.

True laziness is hard work