/ lease # literal \s+ # one or more white space chars \Q # escape the lease so that the .'s aren't special $l # the lease to find \E # end the escape \s+ # more white space \{ # literal .*? # slurp until } (non-greedy) \} # literal /sx