It looks like the
m multiline modifier for regex is on by default?
iex(17)> Regex.match?(~r/^foo$/, "foo\n") true iex(18)> Regex.match?(~r/^foo$/m, "foo\n") true
I would expect the first case to fail because the multiline modifier is disabled? I know I can use
\z but that it is still not clear why the first regex matches.