base » substringBetween(text,start,end,saveVar)
Description
This command save the characters between start and end of the specified text to the variable denoted as
saveVar.
Note the following:
- The parameter
startandendmust not be empty strings. If you need to use blank, use(blank)to denote as such. - Parameter
startwill be search first, thenend. If either delimiter cannot be found, no substring operation will be performed. - If no characters can be found between
startandend, or if these delimiters is not found, then the specifiedsaveVarwill removed.
Parameters
- text - the text where search and substring operations will be performed. Variable expansion is supported via
the
${...}syntax. - start - the character sequence that denote the start of the substring operation
- end - the character sequence that denotes the end of the substring operation
- saveVar - the variable to use for saving the substring result
Example
Here’s an example script for substringBetween(text,start,end.saveVar):

… and the output as follow:
