EXTSTR

The EXTSTR function extracts a substring from the input string.

This component searches the input string for the specified substring and outputs the substring to the right or left of the matching string as specified.

Input

Number of Connections: Min: 1/Max:2
InputData TypeDescription
Input1StringThe string on which the search is made.
Input2StringSets the Search property. (optional)

Output

OutputData TypeDescription
Output1StringThe extracted substring.

Property

NameProperty TypeDescription
SearchStringThe substring to search for.
SearchDirchoiceThe direction from which the search is made.

Left - Begins the search from the left of the string.
Right - Begins the search from the right of the string.
GetDirchoiceDefines which portion of the original string is to be output if a match is made.

Left - Returns the portion of the original string to the left of the matched substring.
Right - Returns the portion of the original string to the right of the matched substring.

Topic


Example

PropertyOutput
Input 1abyzcdyzefSearchyzab
SearchDirLeft
GetDirLeft

PropertyOutput
Input 1abyzcdyzefSearchyzcdyzef
SearchDirLeft
GetDirRight

PropertyOutput
Input 1abyzcdyzefSearchyzef
SearchDirRight
GetDirRight