StrLenWild

Finds wildcarded text within a larger string.

Syntax:

StrLenWild (string, pattern, start)

Parameters:

(s) string any text string.

(s) pattern The wildcarded text to match.

(i) start The position (in characters) within the string to begin matching.

Returns:

(i) The length (in characters) of the portion of the string that matches the wildcard pattern, or 0 if no match at the specified position.

 

In the wildcard pattern, "*" matches zero or more characters, and "?" matches any one character.

Example:


StrLenWild("abcd1234wxyz", "ab*wx", 1) ; would return 10
StrLenWild("abcd1234wxyz", "1*9", 1) ; would return 0
StrLenWild("abcd1234wxyz", "1*4", 5) ; would return 4
StrLenWild("abcd1234wxyz", "1?34*z", 5) ; would return 8
See Also:

StrFill, StrInsert, StrLen, StrFix, StrIndex, StrIndexNc, StrOverlay, StrScan, StrTrim