Much closer behaviour to MRI when multiline option is enabled.

"abc\nefc".match(/.c$/)[0] => "fc"
"abc\nefc".match(/.c$/m)[0] => "bc"
"abc\nefc".match(/.*/)[0] => "abc"
"abc\nefc".match(/.*/m)[0] => "abc\nefc"