Skip to content

Instantly share code, notes, and snippets.

@favio41
Last active August 29, 2015 13:57
Show Gist options
  • Save favio41/9694760 to your computer and use it in GitHub Desktop.
Save favio41/9694760 to your computer and use it in GitHub Desktop.
Regex usefull
Sublime regex for remove _id from export
, "_id" : \{ "\$oid" : ".*?" \}
Regex not greedy
* - zero or more
*? - zero or more (non-greedy)
+ - one or more
+? - one or more (non-greedy)
? - zero or one
?? - zero or one (non-greedy)
OR
* Zero or more, greedy
*? Zero or more, reluctant
*+ Zero or more, possessive
+ One or more, greedy
+? One or more, reluctant
++ One or more, possessive
? Zero or one, greedy
?? Zero or one, reluctant
?+ Zero or one, possessive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment