In this Page
...
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. |
...
Description | Returns an array of strings divided at the supplied separator. This is similar to the JavaScript split. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Syntax |
| ||||||||
Example | Expression: where $Location contains "/snaplogic/projects/DocTest" Result:
Expression: where $Location contains "/Snaplogic/projects/DocTest" Result:
Expression: where $name contains:
Result:
|
sprintf
Description | Swaps out a part of the string using placeholders with another. This is similar to JavaScript sprintf() but includes extended functionality as described in java.util class formatter. | ||
---|---|---|---|
Syntax |
| ||
Example | Where $msg is "hello %s %s" Expression: Result: Where $msg is "hello %2$s %1$s" Expression: Result: |
...