Skip to content

Commit

Permalink
Deep nested capture group example
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-lord committed Jan 13, 2015
1 parent 144f03d commit 723d754
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/regexp-examples_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def self.examples_exist_and_match(*regexps)
/(ref1) (ref2) \1 \2/,
/((ref2)ref1) \1 \2/,
/((ref1and2)) \1 \2/,
/(one)(two)(three)(four)(five)(six)(seven)(eight)(nine)(ten) \10\9\8\7\6\5\4\3\2\1/
/(one)(two)(three)(four)(five)(six)(seven)(eight)(nine)(ten) \10\9\8\7\6\5\4\3\2\1/,
/(a?(b?(c?(d?(e?)))))/
)
end

Expand Down

0 comments on commit 723d754

Please sign in to comment.