string SpanExcluding (string string, string charset)
A substring that contains
characters in the string that are not in charset, beginning with the first
character in the string and ending with the first character found
in the string that is also in charset (that is, starting with the
first character in the string and up to but excluding the first
character in the string that is found charset). It returns the entire string
if no character in charset
is found in the string.
string – source
charset – string interpreted as a set of characters.
Extracts characters from the string, starting with the first
character, that are not in the set of characters identified by
The following example demonstrates the use of SpanExcluding.
string src = "World Cup '2018"