Skip to content

Instantly share code, notes, and snippets.

@acook
Last active December 15, 2015 16:39
Show Gist options
  • Save acook/5291142 to your computer and use it in GitHub Desktop.
Save acook/5291142 to your computer and use it in GitHub Desktop.
line_endings1 = /\r\n|\n\r|\n|\r/
line_endings2 = /\r?\n|\n?\r/
@Frizlab
Copy link

Frizlab commented Apr 2, 2013

I would rather say /\r\n|\n|\r/. No need for the \n\r.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment