Skip to content

Instantly share code, notes, and snippets.

@yin8086
Created November 13, 2016 14:46
Show Gist options
  • Save yin8086/753ef4159bcf060aeb49354643692d92 to your computer and use it in GitHub Desktop.
Save yin8086/753ef4159bcf060aeb49354643692d92 to your computer and use it in GitHub Desktop.
notepad++ remove odd even lines regex

notepad++ remove odd even lines regex

# remove even lines
([^\r\n]*\R)[^\r\n]*\R?
\1
# remove odd lines
^[^\n]*\n([^\n]*)
\1
@bryanseah234
Copy link

the regex for odd lines not working for me

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