Help for this page

Select Code to Download


  1. or download this
      DB<100> @patterns=qw#one two three#
     
    ...
     
      DB<103> print $str =~ m/($re)/g
    onetwo
    
  2. or download this
      DB<106> $str="two one two"
     
    ...
    twoonetwo
      DB<108> print grep {$str=~/$_/} @patterns
    onetwo