Created
August 20, 2015 13:18
-
-
Save charlesponti/e86a2dc82a2af5f50270 to your computer and use it in GitHub Desktop.
Replace carriage returns with empty space
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
string.replace(/[\n\r]/ig, '!space!').replace(/!space!/ig, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment