Skip to content

Instantly share code, notes, and snippets.

@vishnun
Created February 1, 2017 17:46
Show Gist options
  • Save vishnun/a6da71307dcab945513a2a7a9f29c907 to your computer and use it in GitHub Desktop.
Save vishnun/a6da71307dcab945513a2a7a9f29c907 to your computer and use it in GitHub Desktop.
A list of useful regex I've used and come across.
  1. Given a line of comma separated words, you want to select those words excluding the comma and put " ' " marks around it. ([^, ]\w*[^,]) # this will select such words.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment