Skip to content

Instantly share code, notes, and snippets.

@revenkroz
Created January 25, 2019 08:53
Show Gist options
  • Save revenkroz/7820b2fafb6667e6b050535cbd8a7cd6 to your computer and use it in GitHub Desktop.
Save revenkroz/7820b2fafb6667e6b050535cbd8a7cd6 to your computer and use it in GitHub Desktop.
regex to replace all non-unique lines
(?sm)(^[^\r\n]*)[\r\n](?=.*^\1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment