Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
string.indexOfRegex()
Get the index of the matching String given a regex.
Signature
indexOfRegex(regex: String) => Number | Null
indexOfRegex(regex: String, index: Number) => Number | Null
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
regex |
Yes |
Regex to match against the source string. Supports Java regex. |
|
index |
Source string location to start matching against regex. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!