In this Page
...
Description | Returns true or false after determining if one string can be found within another. If position is specified, the search will begin there. Position defaults to 0. | ||
---|---|---|---|
Syntax |
| ||
Example | Expression: where $msg contains "Hello, World" Result: true To specify a position in the string where to start searching: Expression: where $msg contains "Hello, World" Result: false (because "Hello" exists before that position) |
...
Description | Returns true or false after determining if one string ends with the characters of another. Optional parameters include This is similar to the JavaScript endsWith. | ||
---|---|---|---|
Syntax |
| ||
Example | Expression: Result: true Expression: Result: true |
...
Description | Returns a new string with text extracted from another string. If beginIndex is greater than or equal to the length of the string, an empty string is returned. If it is negative, it returns that many characters from the end of the string length. If This is similar to the JavaScript slice. | ||
---|---|---|---|
Syntax |
| ||
Example | Where $String contains "Copyright 2017 All rights reserved." Expression: $String.slice(10) Result: 2017 All rights reserved. Expression: $String.slice(10,14) Result: 2017 Expression: $String.slice(10,-2) Result: 2017 All rights reserve Expression: $String.slice(-2) Result: d. |
...