Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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


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


Returns number or error.


Queries number of names.


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