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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
RegEx.StringNumber
Queries the index number of a name.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| RegEx | 4.4 | Yes | Yes | Yes | Yes | Yes |
MBS( "RegEx.StringNumber"; RegExRef; Name ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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
Created 26th October 2014, last changed 26th October 2014
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos