| STRMATCH(3) | C LIBRARY FUNCTIONS | STRMATCH(3) |
|---|
Except for
&
and
!,
each shell pattern has an equivalent
sh pattern egrep RE description
* .* 0 or more chars
? . any single char
[.] [.] char class
[!.] [^.] negated char class
*(.) (.)* 0 or more of
+(.) (.)+ 1 or more of
?(.) (.)? 0 or 1 of
(.) (.) 1 of
@(.) (.) 1 of
a|b a|b a or b
a&b a and b
!(.) none of
\
is used to escape *, ?, (, |, &, ), [, and \
outside of [...].
| November 07, 2006 |