Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RegEx.Pattern
Queries the pattern used to compile this regular expression.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RegEx | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "RegEx.Pattern"; RegExRef ) More
Parameters
Parameter | Description | Example |
---|---|---|
RegExRef | The reference number for the regular expression returned from RegEx.Compile. | $regex |
Result
Returns text or error.
Description
Queries the pattern used to compile this regular expression.Examples
Query pattern:
Set Variable [ $Pattern ; Value: "H(.*)o (.)or(..)" ]
Set Variable [ $Regex ; Value: MBS("RegEx.Compile"; $Pattern; "CaseLess") ]
Show Custom Dialog [ "Pattern used" ; MBS( "RegEx.Pattern"; $RegEx ) ]
Set Variable [ $r ; Value: MBS("RegEx.Release"; $RegEx) ]
See also
This function is free to use.
Created 26th October 2014, last changed 26th April 2023