strcspn — Get span until character in string
res = strcspn(string_one,string_two)
A character string or matrix of character strings
A character string or matrix of character strings
matrix.
res = strcspn(string_one,string_two)
Scans
string_one for the first occurrence of any of the characters that are part
of string_two, returning the number of characters of string_one read
before this first occurrence.
string_one must have same dimensions than string_two or string_one must be a string.