Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

RegEx.NameCount

Queries number of names.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
RegEx 4.4 Yes Yes Yes Yes Yes

MBS( "RegEx.NameCount"; RegExRef )

Parameters

Parameter Description Example value
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.Free"; $RegEx) ]

See also

Example Databases


RegEx.MinimumLength   -   RegEx.NamedSubstring

Feedback: Report problem or ask question.




Links
MBS FileMaker blog