Skip to content

Instantly share code, notes, and snippets.

@osule
Last active July 28, 2017 12:53
Show Gist options
  • Save osule/813394ca64d720747d7623d15cbf6168 to your computer and use it in GitHub Desktop.
Save osule/813394ca64d720747d7623d15cbf6168 to your computer and use it in GitHub Desktop.
Regex Cheatsheet

Regex cheatsheet

  • Match any character that is not repeated consecutively.

r"(.)(?!\1)"

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