Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RegEx.NamedSubstring
Queries the named substring.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RegEx | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "RegEx.NamedSubstring"; RegExRef; Name ) More
Parameters
Parameter | Description | Example |
---|---|---|
RegExRef | The reference number for the regular expression returned from RegEx.Compile. | $regex |
Name | The name of the substring to find. | "test" |
Result
Returns text or error.
Description
Queries the named substring.Examples
Query text of named substring
Let([
regex = MBS("RegEx.Compile"; "H(?P<name>.*)o"; 0);
r = MBS("RegEx.Execute"; regex; "Hello");
text = MBS("RegEx.NamedSubstring"; regex; "name");
r = MBS("RegEx.Release"; regex)
]; text)
Example result: ell
See also
This function checks for a license.
Created 26th October 2014, last changed 9th June 2024