in reply to Re^2: Match only last occurrence (left-most then longest)
in thread Match only last occurrence

That's it! I didn't figure out I have to repeat the pattern to match exactly the last occurrence.
Thanks a lot!
Sapienti sat.
  • Comment on Re^3: Match only last occurrence (left-most then longest)