| STRMATCH(3) | C LIBRARY FUNCTIONS | STRMATCH(3) |
|---|
char* submatch(char* s, char* p, int m)
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
| November 07, 2006 |