currently, PB is not able to use grouping in Regular Expressions. The underlying PCRE is able to do, but the PB interface simply does not support.
http://www.regular-expressions.info/brackets.html
Please add this!
Kukulkan
Example:
Code: Select all
If CreateRegularExpression(0, "Over (The)")
Dim Result$(0)
a = ExtractRegularExpression(0, "The Quick 15 Brown Fox Jumped Over The 30 Lazy Dogs.", result$())
MessageRequester("Info", "Nb strings found: "+Str(a))
For k=0 To a-1
MessageRequester("Info", Result$(k))
Next
Else
MessageRequester("Error", RegularExpressionError())
EndIf
[0] => Over The
[1] => The
Sadly, PB returns only the first one and there is no way to get the second...