  wildmat is a pattern matching library developed by rich salz. based on the wildcard syntax already used in the bourne shell, wildmat provides a uniform mechanism for matching patterns across applications with simpler syntax than that typically offered by regular expressions. patterns are implicitly anchored at the beginning and end of each string when testing for a match. ==pattern matching operations== there are five pattern matching operations other than a strict one-to-one match between the pattern and the source to be checked for a match. * asterisk (*) to match any sequence of zero or more characters. * question mark (?) to match any single character. * set of specified characters. it is specified as a list of characters, or as a range of characters where the beginning and end of the range are separated by a minus (or dash) character, or as any combination of lists and ranges. the dash can also be included in the set as a character if it is the beginning or end of the set. this set is enclosed in square brackets. the close square bracket (]) may be used in a set if it is the first character in the set. * negation of a set. it is specified the same way as the set with the addition of a caret character (^) at the beginning of the test string just inside the open square bracket. * backslash (\) character to invalidate the special meaning of the open square bracket ([), the asterisk, backslash or the question mark. two backslashes in sequence will result in the evaluation of the backslash as a character with no special meaning. ==usage== wildmat is most commonly seen in nntp implementations such as salz' own inn, also in unrelated software such as gnu tar. the full wildmat syntax is unable to handle multibyte character sets, and poses problems when the text being searched may contain multiple incompatible character sets. a simplified version of wildmat oriented toward utf-8 encoding has been developed by the ietf nntp working group, to be included in an  standards document. ==examples== * *foo* matches string containing "foo". * mini* matches anything that begins with "mini" (including the string "mini" itself). * ???* matches any string of three and more letters. * [0-9a-za-z] matches every singl
Pattern_matching