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 |
||||||
macOS MBS-Xojo-Plugins243.dmg |
Windows MBS-Xojo-Plugins243.zip |
Linux MBS-Xojo-Plugins243.zip |
||||
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:
- /RegEx/PCRE2/PCRE2 Speed Test
- /RegEx/PCRE2/PCRE2 Test
- /RegEx/RegEx/RegEx Multiline
- /RegEx/RegEx/RegEx Speed Test
- /RegEx/RegEx/RegExMBS
- /RegEx/RegEx/Test RegEx1
- /RegEx/RegEx/Test RegEx2
Blog Entries
- MBS Xojo Plugins, version 24.3pr2
- News from the MBS Xojo Plugins Version 22.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.2
- New PCRE2 Plugin for Xojo
- Multithreaded plugin functions can increase speed of Xojo application
- Problems with killing Xojo threads with plugin calls.
- Mac App Store submission and RegEx Plugin
- MBS Xojo / Real Studio plug-ins in version 13.4
- RegEx Speed Test
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 11.3
Xojo Developer Magazine
- 21.1, pages 27 to 28: 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
- 12.4, page 73: Eureka!, Tips and Tricks for the Xojo Developer by Markus Winter
- 12.3, page 91: Group-Ease (and Subgroup-Ease), Everything You Need To Know About Subgroups by Kem Tekinay
- 11.6, page 8: News
Content of RegEx Plugin.