Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    my $string = "The quick brown fox jumps over the lazy dog";
    $string =~ /(the .*? dog)/i;
    print "Match: '", $1, "'";
    
  2. or download this
    Match: 'The quick brown fox jumps over the lazy dog'
    
  3. or download this
    Match: 'the lazy dog'