New Regexp (gb.pcre)

Dim hRegexp As Regexp
hRegexp = New Regexp ( [ Subject As String, Pattern As String, CompileOptions As Enum RegexpCompileOption, ExecOptions As Enum RegexpExecOption ] ) [ As "EventName" ]

Creates a new Regexp object, and optionally compiles a regular expression and matches it against some subject text.

Examples

DIM re as Regexp

re = NEW Regexp("The quick brown fox slyly jumped over the lazy dog", "brown (\\S+)")