Extract$

Takes two parameters, Source, Search

Description:

Returns the original source string from the beginning until the search parameter is found. If the search parameter is not found, than the original string will be returned instead.

See ExtractAny$ for matching on any of the search parameters.

Example:

[New] Example = Extract$ "abcdefgcg", "cg"

 Returns "abcdefg"