Substring

Finds a string in a larger string.

substring(String, List, Integer)

Given a string s, a list of strings left curly bracket s subscript 1 comma... comma s subscript k right curly bracket, and a positive integer n, searches s subscript i in s starting from the n-th char. If more than one s subscript j appear in the original string, only the first appearance is returned. If the find ends with no matches, failed is returned. The output is a list with two elements: an integer with the position of the string and the string s subscript i.

substring(String, List)

Given a string s and a list of strings left curly bracket s subscript 1 comma... comma s subscript k right curly bracket, searches s subscript i in s. If more than one s subscript j appear in the original string, only the first appearance is returned. If the find ends with no matches, failed is returned. The output is a list with two elements: an integer with the position of the string and the string s subscript i.