How do I create a regex that takes into account that the subject consists of multiple lines?
The \"m\" modifier for one does not seem to work.
m
Try the 's' modifier. Meaning 'treat as if a single line'.
'm' enables the use of ^ and $ line beginnings and endings to be used.