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.

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.

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

💬 Ask a question or report a problem
The biggest plugin in space...