Help for this page

Select Code to Download


  1. or download this
    (?!regex1)(?!regex2)(?!regex3)
    
  2. or download this
    my $andedRegexes = Regexp::Assemble->new;
      $andedRegexes->add( 'regex1' );
    ...
      $andedRegexes->add( 'regex3' );
    #regex is now 'regex(1|2|3)'
    #which is more efficient
    
  3. or download this
    $negatedAndedRegexes = (?=qr($andedRegexes))