Help for this page

Select Code to Download


  1. or download this
    $count = () = $data =~ m/and/g;
    
  2. or download this
    my($next_word) = /and(?=\W*(\w+))/;
    
  3. or download this
    my @pairs = /(and)(?=\W*(\w+))/g;
    
  4. or download this
    $_ = 'foo and bar and baz went to the sea.';
    my @pairs = /(and)(?=\W*(\w+))/g;
    print join "#", @pairs;
    
  5. or download this
    and#bar#and#baz