my $NestedGuts = qr{ (?> (?: # Stuff not parenthesis [^()]+ # An opening parenthesis | \( # A closing parenthesis | \) )* ) }x; ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl