Help for this page

Select Code to Download


  1. or download this
    
    #Note: To keep Perl from resolving "$\n" as the variable "$\"
    ...
      print "   m modifier (multi line mode): "
        ."regex=/$sRegex/m\n     $sMatch => $sComment\n";
    }
    
  2. or download this
    string=<a\n>
       no modifier: regex=/^a$/
    ...
         no match => $ matches only boundary, \n matches first newline
       m modifier (multi line mode): regex=/^a$\n/m
         match => $ matches only boundary, \n matches first newline