comp • gb.pcre • regexp • _new

New RegExp (gb.pcre)

Dim hRegExp As RegExp
hRegExp = New RegExp ( [ Subject As String, Pattern As String, CompileOptions As Integer, ExecOptions As Integer ] )

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+)")