On 26.03.2011 04:08, 7stud -- wrote: > 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? "_the_ perl regexp"? What do you mean exactly? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/