Help for this page

Select Code to Download


  1. or download this
    my $string = 'run rabbit run';
    print "Matched with word boundary\n" if $string =~ /\brun\b/;
    print "Matched with non-word char\n" if $string =~ /\Wrun\W/;