+
K
Supported in: Batch
Returns an array of indices at which the regular expression pattern is found in the given expression.
Expression categories: Regex, String
Output type: Array<Integer>
Description: You can find regex patterns and their indices. Argument values:
Output: [ 0, 2, 4 ]
Description: Overlapping matches are not considered separately; the entire matching segment is treated as a single match. Argument values:
Output: [ 0 ]
Description: Regex patterns sometimes don't match input strings, resulting in an empty array. Argument values:
Output: [ ]
Description: If the expression is null, the output is null. Argument values:
Output: null
Description: If the pattern is null, the output is null. Argument values:
Argument values:
string
pattern