December 1994
Intermediate to advanced
606 pages
16h 7m
English
The pattern type exp_exact identifies a pattern that must be exactly matched in the input. The usual C escapes must be observed; however, no characters are interpreted as wildcards or anchors. Exact patterns are unanchored.
exp_expectl(fd, exp_exact, "#*!$", 1, exp_end);
The example above returns 1 only if the character stream contains the consecutive sequence of characters "#“, "*“, "!“, and "$“.