Help for this page

Select Code to Download


  1. or download this
    $_ = "Tim created the ...";
    
    while ( /\bit (.*?)[.?!]/ig ) {
        print "\n$1\n";
    }
    
  2. or download this
    while (<>) {
        while ( /\bit (.*?)[.?!]/ig ) {
            print "\n$1\n";
        }
    }
    
  3. or download this
     perl test.pl test.txt