Monotone expects user-provided regular expressions in
.mtn-ignore files and as the result of the
get_encloser_pattern
Lua hook (for the diff command).
User-written Lua hooks may also use the
function regex.search
as they see fit. All these regular
expressions should be written with the same syntax, which is that
expected by the Perl-Compatible Regular Expression library (PCRE).