Robert K. wrote in post #989148: > On Fri, Mar 25, 2011 at 2:58 AM, 7stud -- <bbxx789_05ss / yahoo.com> > wrote: >> perl's regexes have a recursive feature, which can solve your problem. >> Want to call an external script? > > Not necessary: Ruby has it, too. > > irb(main):002:0> %r{(?<ne> \( (?:\g<ne>|[^()]+)* \) )}x > How come the perl regex uses the non-backtracking ++, and yours doesn't appear to do the equivalent? -- Posted via http://www.ruby-forum.com/.