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

RegEx.StringNumber

Queries the index number of a name.

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

MBS( "RegEx.StringNumber"; RegExRef; Name )

Parameters

Parameter Description Example value
RegExRef The reference number for the regular expression returned from RegEx.Compile. $regex
Name The name of the substring to find. "test"

Result

Returns number or error.

Description

Queries the index number of a name.

Examples

Test with a named substring:

$regex = MBS("RegEx.Compile"; "H(?P<name>.*)o"; 0)
$index = MBS("RegEx.StringNumber"; $regex; "name")
# index is now 1 as this is first substring.

See also


RegEx.Size   -   RegEx.Study

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins