Help for this page

Select Code to Download


  1. or download this
    ...
    my $list_regex = join '|', @patterns;
    my $regex_string = qr/$list_regex/is;
    ...
    if (/($regex_string)/) {print "\n$arg1\n$1\n";}
    
  2. or download this
    pattern1
    some text
    ...
    instead of this match:
    
    pattern1.*pattern2