Summary
Searches for matches in a string.
Description
Searches for a match between a regular expression and this String object.
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
| Name | Type | Required | Description |
|---|---|---|---|
| str | string | yes | The string to search |
| regexp | string | yes | The regular expression to match |
Return
DetailsExampleSchema
| Name | Type | Description |
|---|---|---|
| index | number | The index of the first match between the regular expression and the given string; -1 if not found |