Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "Matched\n"       if $str =~ /^\d{4,4}[A-Z0-9]$/;
    print "Multi-matched\n" if $str =~ /^\d{4,4}[A-Z0-9]$/m;
    
  2. or download this
    Multi-matched