Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

RegEx.NameCount

Queries number of names.

Component Version macOS Windows Linux Server iOS SDK
RegEx 4.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "RegEx.NameCount"; RegExRef )   More

Parameters

Parameter Description Example
RegExRef The reference number for the regular expression returned from RegEx.Compile. $regex

Result

Returns number or error.

Description

Queries number of names.

Examples

Use a named group:

Set Variable [ $Pattern ; Value: "H(?P<MyName>.*)o" ]
Set Variable [ $Regex ; Value: MBS("RegEx.Compile"; $Pattern; "CaseLess") ]
Show Custom Dialog [ "Namecount" ; MBS( "RegEx.nameCount"; $RegEx ) ]
Set Variable [ $r ; Value: MBS("RegEx.Release"; $RegEx) ]

See also

Example Databases

This function is free to use.

Created 26th October 2014, last changed 26th April 2023


RegEx.MinimumLength - RegEx.NamedSubstring

💬 Ask a question or report a problem