Created
October 30, 2013 18:22
-
-
Save davidbella/7237461 to your computer and use it in GitHub Desktop.
Revisions
-
davidbella created this gist
Oct 30, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ http://regex101.com/r/mV8rA7 /(?:_([^_.]+))+?/g 01_create_cats.rb 02_create_all_the_dogs.rb /(?:_([^_.]+))+?/g (?:_([^_.]+)) Non-capturing Group 1 to infinite times [lazy] _ Literal _ 1st Capturing group ([^_.]+) Negated char class [^_.] 1 to infinite times [greedy] matches any character except: _. One of the following characters _. g modifier: global. All matches (don't return on first match)