Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    if ($str =~ /lease\s+\Q$l\E\s+\{.*?\}/s) {
      print "$&\n";
    }
    
  2. or download this
     /
       lease   # literal
    ...
       .*?     # slurp until } (non-greedy)
       \}      # literal
    /sx