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 |
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
- property AllOptions as Integer
- property Anchored as Boolean
- property ArgOptions as Integer
- property BackRefMax as Integer
- property BSR as Integer
- property CaptureCount as Integer
- property DepthLimit as Integer
- property EndAnchored as Boolean
- property ExtraOptions as Integer
- property FirstCodeType as Integer
- property FirstCodeUnit as Integer
- property FrameSize as UInt64
- property HasBackslashC as Boolean
- property HasCRorLF as Boolean
- property HeapLimit as Integer
- property JChanged as Boolean
- property JITSize as UInt64
- property LastCodeType as Integer
- property LastCodeUnit as Integer
- property MatchEmpty as Boolean
- property MatchLimit as Integer
- property MaxLookBehind as Integer
- property MinLength as Integer
- property NameCount as Integer
- property NameEntrySize as Integer
- property NewLine as Integer
- property NoJit as Boolean
- property NotBOL as Boolean
- property NotEmpty as Boolean
- property NotEmptyAtStart as Boolean
- property NotEOL as Boolean
- property NoUTFCheck as Boolean
- property Options as Integer
- property PartialHard as Boolean
- property PartialSoft as Boolean
- property Size as UInt64
- property SubstituteExtended as Boolean
- property SubstituteGlobal as Boolean
- property SubstituteLiteral as Boolean
- property SubstituteMatched as Boolean
- property SubstituteOverflowLength as Boolean
- property SubstituteReplacementOnly as Boolean
- property SubstituteUnknownUnset as Boolean
- property SubstituteUnsetEmpty as Boolean
- 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:
- PCRE2CompilerMBS.Compile as PCRE2CodeMBS
- PCRE2MatchDataMBS.Constructor(code as PCRE2CodeMBS)
Some examples using this class:
Blog Entries
- Embracing for each loops
- The Top 10 from the MBS Xojo Plugins in 2022
- News from the MBS Xojo Plugins Version 22.2
- MBS Xojo Plugins, version 22.2pr6
- Iterate with PCRE2
- New PCRE2 Plugin for Xojo
- MBS Xojo Plugins, version 22.2pr4
Xojo Developer Magazine
- 21.1, page 27: News from MBS Xojo Plugins, What's up with MonkeyBread Software by Stefanie Juchmes
- 20.6, pages 70 to 71: Regular Expressions with Xojo, The MBS Plugins has its own RegEx library by Stefanie Juchmes
The items on this page are in the following plugins: MBS RegEx Plugin.
PCRE2CodeInfoMBS - PCRE2CompilerMBS