Help for this page

Select Code to Download


  1. or download this
      $rxNest = qr{(?x)
        \(
    ...
        \)
      };
      $string =~ /$rxNest/;
    
  2. or download this
      $rxNest = qr{
        \(
        (?: (?>[^()]+) | (??{$rxNest}) )*
        \)
      }x;
    
  3. or download this
      (?{ local @memoList = (@memoList, $+) })
    
  4. or download this
      (?{ local $offset = $offset + 1; local $memoList[$offset] = $+ })
    
  5. or download this
      $string =~ /^$rxNest\z/;