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
Function: 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
Notes:
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


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


PCRE2CodeInfoMBS   -   PCRE2CompilerMBS

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat