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


( 824M )

Windows Windows

( 823M )

Linux Linux

( 823M )



Presentations   Prerelease

Individual files   Libraries

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

You can order a license here: Order

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


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.


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.


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...