Help for this page

Select Code to Download


  1. or download this
    package Regexp;
    
    ...
    my $string = "This is a test.\n";
    my $re = qr/\bis\b/;
    print "Match!\n" if $re->wierd( $string );
    
  2. or download this
    
    package WierdRE;
    ...
    my $string = "This is a test.\n";
    my $re = WierdRE->new( '\bis\b' );
    print "Match!\n" if $re->wierd( $string );