Help for this page

Select Code to Download


  1. or download this
            $x = "Housecat catenates house and cat";
            $x =~ /cat/;    # matches cat in 'housecat'
            $x =~ /\bcat/;  # matches cat in 'catenates'
            $x =~ /cat\b/;  # matches cat in 'housecat'
            $x =~ /\bcat\b/;  # matches 'cat' at end of string