Node:Regular Expressions, Next:Word Expansion, Previous:Globbing, Up:Pattern Matching
The GNU C library supports two interfaces for matching regular expressions. One is the standard POSIX.2 interface, and the other is what the GNU system has had for many years.
Both interfaces are declared in the header file regex.h
.
If you define _POSIX_C_SOURCE
, then only the POSIX.2
functions, structures, and constants are declared.
regcomp
to prepare to match.
regcomp
.
regexec
to match the compiled
pattern that you get from regcomp
.