Last active
September 4, 2018 05:57
-
-
Save quanon/b990ecb4732b064c57e0f269139aeeff to your computer and use it in GitHub Desktop.
改行コードを統一する
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
"ほげ\nほげ\rほげ\r\n".gsub(/(?<!\r)\n|\r(?!\n)/, "\r\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment