Help for this page

Select Code to Download


  1. or download this
      #!/usr/bin/perl -w
      use strict;
    ...
        print 'regex> ';
      }
    
  2. or download this
      (fred|barney){3}
    
  3. or download this
    01  #!/usr/bin/perl -w
    02  use strict;
    03  my $regexp = 'some$thing';
    04  $_ = # PLEASE ENTER YOUR TEST STRING HERE
    05  print "That's it!\n" if /$regexp/m;