Javascript Regular Expression (RegExp) Multiline Flag Not Universal

new RegExp("[\\n\\r]+", "gim")

For Cut-and-Paste