in reply to Re^2: multiline regex: heredoc vs. reading file
in thread multiline regex: heredoc vs. reading file

/m changes where ^ and $ can match; /s changes what . can match. Since you don't have any of ^, $, or . in your regex, the flags do nothing.

The problem is that you have a regex that only matches multiple lines, but you are trying to match each line of the file against it individually, and of course none of them do match.

  • Comment on Re^3: multiline regex: heredoc vs. reading file