Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "No match: '$text', '$match'\n" if $text !~ /$regex/i;
    print "/i match: '$text', '$match'\n" if $text =~ /$match/i;
    
  2. or download this
    No match: 'Abcd', 'abcd'
    /i match: 'Abcd', 'abcd'