Help for this page

Select Code to Download


  1. or download this
    $string = "...foo\nbar...";
    if ($string =~ /foo$bar/m) {
      # ...
    }
    
  2. or download this
    $string = "...foo\nbar...";
    if ($string =~ /foo$^bar/m) {
      # ...
    }
    
  3. or download this
    $string = "...foo\nbar...";
    if ($string =~ / foo$ ^bar /mx) {
      # ...
    }