Skip to content

Instantly share code, notes, and snippets.

@bennadel
Created March 24, 2014 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennadel/9751126 to your computer and use it in GitHub Desktop.
Save bennadel/9751126 to your computer and use it in GitHub Desktop.
Javascript Regular Expression (RegExp) Multiline Flag Not Universal
new RegExp("[\\n\\r]+", "gim")
new RegExp("[\\n\\r]+", "gi")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment