Compares case-sensitive values that are similar, using the UNIX file globbing syntax for its wildcards.
bool uGlob(pattern, text)
uGlob("Mr. *", "Mr. Smith") // returns 1, indicating a match
uGlob("Mr. *", "Mrs. Clarke") // returns 0
Globbing rules:
“*” – matches any sequence of zero or more characters.
“?” – matches exactly one character. [^...] – matches one character not in the enclosed list.
[...] – matches one character from the enclosed list of characters.
“[a-z]” matches any single lowercase letter. To match a hyphen ( - ), make it the last character in the list.
To match an asterisk ( * ) or a question mark ( ? ), place them in square brackets ( [] ).
For example: abc[*]xyz, matches the literal value “abc*xyz” .