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.
Comments
0 comments
Please sign in to leave a comment.