Skip to content

Instantly share code, notes, and snippets.

@halink0803
Last active March 3, 2022 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halink0803/e1fe80eae4977eca311a6ced6e1fcb1d to your computer and use it in GitHub Desktop.
Save halink0803/e1fe80eae4977eca311a6ced6e1fcb1d to your computer and use it in GitHub Desktop.
Regular expression

// Find all \n without precede by \n and followed by \n

(?<!\n)\n(?!\n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment