The MBS Xojo RegEx Plugin

All plugins   Documentation   Download   Mailing list  
Order RegEx Plugin license   Order Complete Set License   Plugin Content  

Better regular expressions.

This plugin is included in our plugin archive:

Download the MBS Xojo Plugins

Mac macOS

Mac

MBS-Xojo-Plugins241.dmg
( 853M )

Windows Windows

Windows

MBS-Xojo-Plugins241.zip
( 867M )

Linux Linux

Linux

MBS-Xojo-Plugins241.zip
( 867M )

Documentation

Installation

Presentations   Prerelease

Individual files   Libraries

Dropbox Mirror

All archives contain the same content.
MBS RegEx Plugin.pdf 811K

You can order a license here: Order

This plugin part is included if you order a Complete set license.

RegEx

Our MBS Xojo RegEx Plugin provides an alternative RegEx class to Xojo with a few differences to the built in class:

  • Better handling of text encodings.
  • Much faster Replace/Replaceall operations.
  • More options to configure.
  • Multithreading support.
  • Can work on String and Memoryblocks.
  • Dynamical limit of subpatterns.
  • Info functions to query details on generated state machine.
  • More recent PCRE library version.
  • Disassemble function to debug pattern.
  • Full unicode support including using unicode escapes.

PCRE2

The newer PCRE2 library offers better performance and a modern API.

  • Written for UTF-8 encoding.
  • Much faster Replace/Replaceall operations.
  • More options to configure.
  • Full unicode support including using unicode escapes.
  • Just-in-time compiler.

Example

Use PCRE2 to compile a pattern, do a match an inspect result:

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

The documentation for MBS RegEx Plugin:

show all functions and classes in this plugin.

Examples for this plugin:

Blog Entries

Xojo Developer Magazine

Content of RegEx Plugin.

The biggest plugin in space...