<substring>
Purpose/Function
Get the specified substring of the string. Subset of the functionality provided by StringCut.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
string |
|
|
string to search |
from |
|
0 |
start index |
to |
|
-1 |
end index |
Elements
None.
ReturnValues
DEFAULT NAME |
TYPE |
DESCRIPTION |
---|---|---|
substringResult |
|
the indicated substring |
Examples
<substring string="${string}" from="13"> <!-- to the end of the string --> <return-value assignedName="result" defaultName="substringResult"/> </substring> <substring string="${string}" to="26"> <!-- from the beginning of the string --> <return-value assignedName="result" defaultName="substringResult"/> </substring>