From 723d7549dcb2caa0da19a1a26456528b037fd0af Mon Sep 17 00:00:00 2001 From: = Date: Tue, 13 Jan 2015 21:27:07 +0000 Subject: [PATCH] Deep nested capture group example --- spec/regexp-examples_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/regexp-examples_spec.rb b/spec/regexp-examples_spec.rb index a4927e2..997928c 100644 --- a/spec/regexp-examples_spec.rb +++ b/spec/regexp-examples_spec.rb @@ -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