Platforms to show: All Mac Windows Linux Cross-Platform
PCRE2CompilerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Regular Expressions | MBS RegEx Plugin | 22.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim Compiler As New PCRE2CompilerMBS
// find numbers
compiler.Pattern = "(\d+)([$€£]?)"
Dim code As PCRE2CodeMBS = Compiler.Compile
// prepare reuable match object
Dim Match As New PCRE2MatchDataMBS(code)
// now run a match
Dim Text As String = "Täst 1234€ Case"
Dim n As Integer = code.Match(Text, match)
// get result found
Dim TotalSubString As String = match.SubString(0)
Dim SubString1 As String = match.SubString(1)
Dim SubString2 As String = match.SubString(2)
break // see debugger
- 46 properties
- property AllowEmptyClass as Boolean
- property AllowLookaroundBSK as Boolean
- property AllowSurrogateEscapes as Boolean
- property AltBsux as Boolean
- property AltCircumflex as Boolean
- property AltVerbNames as Boolean
- property Anchored as Boolean
- property AutoCallout as Boolean
- property BadEscapeIsLiteral as Boolean
- property BSR as Integer
- property Caseless as Boolean
- property DollarEndonly as Boolean
- property DotAll as Boolean
- property DupNames as Boolean
- property EndAnchored as Boolean
- property ErrorOffset as Integer
- property EscapedCRIsLF as Boolean
- property Extended as Boolean
- property ExtendedAltBSUX as Boolean
- property ExtendedMore as Boolean
- property ExtraOptions as Integer
- property Firstline as Boolean
- property Greedy as Boolean
- property Literal as Boolean
- property MatchInvalidUTF as Boolean
- property MatchLine as Boolean
- property MatchUnsetBackref as Boolean
- property MatchWord as Boolean
- property MaxPatternLength as Integer
- property Multiline as Boolean
- property NeverBackslashC as Boolean
- property NeverUCP as Boolean
- property NeverUTF as Boolean
- property NewLine as Integer
- property NoAutoCapture as Boolean
- property NoAutoPossess as Boolean
- property NoDotStarAnchor as Boolean
- property NoStartOptimize as Boolean
- property NoUTFCheck as Boolean
- property Options as Integer
- property ParensNestLimit as Integer
- property Pattern as String
- property UCP as Boolean
- property Ungreedy as Boolean
- property UseOffsetLimit as Boolean
- property UTF as Boolean
- 17 shared properties
- shared property AllocationBytes as Int64
- shared property AllocationCount as Int64
- shared property CompiledWidths as Integer
- shared property DefaultBSR as Integer
- shared property DefaultDepthLimit as Integer
- shared property DefaultHeapLimit as Integer
- shared property DefaultMatchLimit as Integer
- shared property DefaultNewLine as Integer
- shared property DefaultParensLimit as Integer
- shared property HasJIT as Boolean
- shared property HasUnicode as Boolean
- shared property JITTarget as String
- shared property LinkSize as Integer
- shared property MonitorAllocations as Boolean
- shared property NeverBackslashC as Boolean
- shared property PCRE2Version as String
- shared property UnicodeVersion as String
- 3 methods
- method Compile as PCRE2CodeMBS
- method Constructor
- method Copy as PCRE2CompilerMBS
- 8 constants
BSR
Constant | Value | Description |
---|---|---|
kBSRanyCRLF | 2 |
CR, LF, or CRLF only |
kBSRUnicode | 1 |
Unicode line endings |
New Line Character
Constant | Value | Description |
---|---|---|
kNewLineAny | 4 |
Any Unicode newline sequence. |
kNewLineAnyCRLF | 5 |
CR, LF or CRLF. |
kNewLineCR | 1 |
Carriage return only |
kNewLineCRLF | 3 |
CR followed by LF only |
kNewLineLF | 2 |
Linefeed only |
kNewLineNul | 6 |
The NUL character (binary zero) |
This class has no sub classes.
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS RegEx Plugin.
PCRE2CodeMBS - PCRE2ExceptionMBS
Feedback: Report problem or ask question.
