<substring>

Purpose/Function

Get the specified substring of the string. Subset of the functionality provided by StringCut.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

string

java.lang.String

null

string to search

from

int

0

start index

to

int

-1

end index

Elements

None.

ReturnValues

DEFAULT NAME

TYPE

DESCRIPTION

substringResult

java.lang.String

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>
  • No labels