PCRE2CodeMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
PCRE2CodeMBS class
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.
44 properties
12 methods
method Constructor Private
method Copy (withTables as boolean = false) as PCRE2CodeMBS
method Infos as PCRE2CodeInfoMBS ()
method JITCompile (Flags as Integer = 1)
method Match (Text as String, matchData as PCRE2MatchDataMBS , StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as Integer
method Match (Text as String, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as PCRE2MatchDataMBS
method MatchAll (Text as String, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as PCRE2MatchDataMBS ()
method Matches (Text as String, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as PCRE2IteratorMBS
method Names as String()
method SerializeEncode as String
method Substitute (Text as String, Replacement as String, matchData as PCRE2MatchDataMBS = nil, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as String
method SubstringNumberFromName (Name as String) as Integer
shared method SerializeDecode (Data as String) as PCRE2CodeMBS
3 constants
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