Created
May 16, 2017 18:43
-
-
Save MgenGlder/4677ad0c8565cf8681d5a2c3f395b4ee to your computer and use it in GitHub Desktop.
Match all new line characters in a string and replace them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\nLUL \rLUL".replace(/\r?\n|\r/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment