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.
In reply to Re: end of line anchor in regex
by ikegami
in thread end of line anchor in regex
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |