Platforms to show: All Mac Windows Linux Cross-Platform
PCRE2MatchDataMBS 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 allows you to reuse the object to hold result of a match, so only create it once and then use it with multiple strings to match.
- 5 properties
- property DataSize as Integer
- property Mark as String
- property OffsetVectorCount as Integer
- property StartPosition as Integer
- property Text as String
- 7 methods
- method Constructor(code as PCRE2CodeMBS)
- method Constructor(size as Integer)
- method OffsetVector(index as Integer) as Integer
- method OffsetVectors as Integer()
- method SubString(Index as Integer) as String
- method SubString(Name as String) as String
- method SubStrings as String()
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 24.3pr2
- The Top 10 from the MBS Xojo Plugins in 2022
- MBS Xojo Plugins, version 22.3pr4
- News from the MBS Xojo Plugins Version 22.2
- Iterate with PCRE2
- New PCRE2 Plugin for Xojo
- MBS Xojo Plugins, version 22.2pr4
Xojo Developer Magazine
- 21.1, page 28: News from MBS Xojo Plugins, What's up with MonkeyBread Software by Stefanie Juchmes
- 20.6, page 70: Regular Expressions with Xojo, The MBS Plugins has its own RegEx library by Stefanie Juchmes
Release notes
- Version 24.3
- Fixed a crash in SubStrings function in PCRE2MatchDataMBS class.
- Version 22.3
- Fixed PCRE2MatchDataMBS class to not crash with querying StartPosition in an empty matchdata object.
Some methods using this class:
- PCRE2CodeMBS.Match(Text as String, matchData as PCRE2MatchDataMBS, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as Integer
- PCRE2CodeMBS.Match(Text as String, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as PCRE2MatchDataMBS
- PCRE2CodeMBS.MatchAll(Text as String, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as PCRE2MatchDataMBS()
- PCRE2CodeMBS.Substitute(Text as String, Replacement as String, matchData as PCRE2MatchDataMBS = nil, StartOffsetCharacters as Integer = 0, MatchContext as PCRE2MatchContextMBS = nil) as String
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS RegEx Plugin.
PCRE2MatchContextMBS - PDFActionGoToMBS
