RegExMatch$

combit List & Label Designer

combit List & Label

RegExMatch$

Purpose:

Returns the part of the string that corresponds to the regular expression or the group passed in the third parameter.

The regular expression corresponds to Pearl 5 Syntax, which in most details equals the regular expression syntax of the Visual Basic Scripting engine.

Parameter:

String

String

Number

Return value:

String

Example:

Division of the "STREET" field to street and number:

"Street: " + RegExMatch$(STREET,"((?:\w* )+)(\d+[\w ]*$)",1) "Number: " + RegExMatch$(STREET,"((?:\w* )+)(\d+[\w ]*$)",2)

RegExMatch$("test1234xyz0815", "[0-9]+")          Result: "1234"