"Why is '\n' handled in a special way?" Because \n IS special, especially in the past when text was often line-oriented. Simply add /s (it has no other side effects) or use (?:.|\n). In Perl6, /s is on my default.
Comment on Re: RegEx: Why is [.] not a valid character class?