Help for this page

Select Code to Download


  1. or download this
    my $re = qr/(?:match|matching\.com|match.company)/i;
    print "regexp - $re";
    ...
    __output__
    
    regexp - (?i-xsm:(?:match|matching\.com|match.company))
    
  2. or download this
    my $re = qr/(match|matching\.com|match.company)/i;
    print "old - $1\n" if "matching.com" =~ $re;
    ...
    
    old - match
    new - matching.com