I have tested it (Chrome) and it working for me( both [^] and [^\0]), by changing the dot (.) by either [^\0] or [^] , because dot doesn't match line break (See here: http://www.regular-expressions.info/dot.html).
var ss= "aaaa\nbbb\nccc
ffffd";
var arr= ss.match( //gm );
alert(arr); //Working