String Extract Functoid

 

Use the String Extract functoid ( Icon that represents the String Extract functoid.) to extract a substring from the specified string.

Input

Parameter 1: The string from which to extract the substring.

Parameter 2: A numeric value that is the string position, starting at 1, of the first character of the substring to be extracted.

Parameter 3: A numeric value that is the string position, starting at 1, of the last character of the substring to be extracted.

Output

Output 1: A string that contains the requested substring, or an empty string if the requested substring cannot be extracted due to incorrect values for parameters 2 and/or 3. However, if parameter 3 exceeds the size of the string, a substring is still returned as though parameter 3 were set to the exactly the size of the string.

Remarks

String positions are counted starting from one (1).

You can use other string functoids, such as Size, to determine string characteristics, such as length, to avoid passing parameter values that are out-of-range.

See Also

String Functoids Reference
String Functoids
How to Add Basic Functoids to a Map