Oh boy, I knew the answer would be obvious! That "$" was a typo introduced many moons ago, but for the first time, I had to parse text that didn't have the match at the end of the string, so it never threw up on me until now.
Thanks for pointing it out, problem solved, phew! I was really hitting my head on the desk over this one.
In reply to Re^2: Matches but not substituting
by seaver
in thread Matches but not substituting
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |