Help for this page

Select Code to Download


  1. or download this
        "foo\nbar" =~ /foo$/ or print "Didn't match EOL :-(\n";
    
  2. or download this
        ^ begin
        $ end (before \n)
    
  3. or download this
        ^ start of str
        $ end of str (incl \n)
    
  4. or download this
        /m ^ = SOL, $ = EOL
        /s . matches \n too