strspn()

Function groupExecute on clientPlatform(s)
StringNOAll

Syntax

strspn(string1,string2)

Description

Returns the index of the first character in string1 that does not match any of the characters in string2.

Example

Calculate
 
lResult
 as 
strspn
(
lString1
,
lString2
)

# lResult is a 1-based index, or len(lString1)+1 if all characters are in lString2