in reply to Re: How to match last character of string, even if it happens to be a newline?
in thread How to match last character of string, even if it happens to be a newline?

Yes, the \z anchor does, the trick, thanks!
  • Comment on Re^2: How to match last character of string, even if it happens to be a newline?