From: James Edward Gray II Date: 2004-10-06T00:38:20+09:00 Subject: Re: Regexp match question on interpolated strings... On Oct 5, 2004, at 9:25 AM, ts wrote: >>>>>> "J" == James Edward Gray writes: > J> delimiters. I miss this feature and would love to see Ruby add > J> something similar in the future. > > This ? > > svg% cat b.rb > #!ruby -rjj > ["(aaa(bbbc)xxx)", "(aaa(bb(b)c)xxx)"].each do |m| > p $& if /(?\((?:(?>[^()]+)|\g)*\))/ =~ m > end > /(?\((?:(?>[^()]+)|\g)*\))/.dump Wow. I can't decipher how, but that sure appears to work, though not in my Ruby. ;) What is this magical "jj" library you loaded? James Edward Gray II