Extract substring matching
pattern from
string. If not
NULL,
estr points to the end of the longest exact or substring match.
pmatch() uses the following metacharacters:
?
match any single character.
*
match any character 0 or more times.
[
define a range of characters that will match. The range is defined by 2 characters separated by a ‘-'. The range definition has to end with a ‘]'. A ‘^' following the ‘[' will negate the range.