p>
<h2><a name="SEC6" href="#TOC1">MATCHING A PATTERN</a></h2>
<p>
The function <b>pcre2_regexec()</b> is called to match a compiled pattern
<i>preg</i> against a given <i>string</i>, which is by default terminated by a
zero byte (but see REG_STARTEND below), subject to the options in <i>eflags</i>.
These can be:
<pre>
  REG_NOTBOL
</pre>
The PCRE2_NOTBOL option is set when calling the underlying PCRE2 matching
function.
<pre>
  REG_NOTEMPTY
</pre>
The PCRE2_NOTEMPTY option is set when calling the underlyin