Help for this page

Select Code to Download


  1. or download this
      for (@patterns) {
         if ( $incoming{'text'} =~ /$_/ ) { 
             ....
         }
      }
    
  2. or download this
         if ( $incoming{'text'} =~ /$Big_Regex/ ) { 
             ....
         }
    
  3. or download this
      my $Big_Regex=join "|",@patterns;
      $Big_Regex=qr/$Big_Regex/;
    
  4. or download this
      for (@patterns) {
         if ( instr($incoming{'text'},$_) > -1 ) { 
             ....
         }
      }