JSREF
JavaScript RegExp \n Metacharacter
Search for a newline character in a string: