IsWildcardMatch Function

  • Updated

Determines if an expression matches an DOS-style wildcard expression.

Syntax 1

 

Determines if an expression matches an DOS-style wildcard expression.

 

IsWildcardMatch(string, pattern)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

pattern

String - A DOS-style wildcard pattern (*, ? wildcards).

Syntax 2

 

Determines if an expression matches an DOS-style wildcard expression.

 

IsWildcardMatch(string, pattern, caseSensitive)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

pattern

String - A DOS-style wildcard pattern (*, ? wildcards).

 

 

caseSensitive

Boolean - True to be case-sensitive in the wildcard pattern.

Remarks

  • Example: IsWildcardMatch("Abcdefzx", "a*z?") returns true.
  • Example: IsWildcardMatch("abcdefzx", "a*z?", true) returns true.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.