Full threadExisting4190·perlre Metacharacters documentation states: $ Match the end of the string (or before newline at the end of the string; or before any newline if /m is used)(/m enables multiline mode)View on HN