in reply to end of line anchor in regex

By default (no "m" option),
$ matches at a newline at the end of the string.
$ matches at the end of the string.

With the "m" option (s///m),
$ matches at the end of a line (at a newline).
$ matches at the end of the string.