Platforms to show: All Mac Windows Linux Cross-Platform

PCRE2CodeMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for a compiled pattern.
Example

Dim Compiler As New PCRE2CompilerMBS
compiler.Pattern = "(\d+)([$€£]?)"

Dim code As PCRE2CodeMBS = Compiler.Compile

MessageBox Str(code.CaptureCount) // shows 2

Please use this class as a chance to compile once and then reuse the compiled pattern several times to search various strings.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Constants

Constant Value Description
kJITComplete 1 One of the flags for JIT compilation. Compile code for full matching.
kJITPartialHard 4 One of the flags for JIT compilation. Compile code for hard partial matching.
kJITPartialSoft 2 One of the flags for JIT compilation. Compile code for soft partial matching.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine


The items on this page are in the following plugins: MBS RegEx Plugin.


PCRE2CodeInfoMBS   -   PCRE2CompilerMBS


The biggest plugin in space...