in reply to Re: Regex with newline
in thread Regex with newline

Note that thabenksta's example does not include the '/s'. You do not need it and you obscure its meaning and usefulness when you use it reflexively just because you are working with multiple lines.

'/s' simply allows '.' to match line break characters. It has no other effect on the ability of your regex to work with multiple lines.