Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @results = $str =~ m{ (?= (\S+ \s+ \Q$word\E \s+ \S+) ) }xmsg;
    
    print join("\n", @results), "\n";
    
  2. or download this
    Perl version 5.008008
    1 plus 2
    ...
    I plus J
    J plus K
    7 plus Z
    
  3. or download this
    Perl version 5.010000
    1 plus 2
    ...
    I plus J
    J plus K
    7 plus Z