RegExp.Exec (gb.pcre)

Sub Exec ( Subject As String [ , ExecOptions As Integer ] )

Exec lets you execute a previously compiled regular expression against a subject text. This is mainly useful when you have many different subject texts you want to match against, because you can compile a regular expression once and use Exec repeatedly for increased speed.

Compile and Exec are both called automatically if you specify a pattern and subject text when creating a RegExp object.

Here is the list of execution options that can be specified: