you've compiled a pattern, you can use it for matching or searching any
number of times.
-The Regex library consists of two source files: @file{regex.h} and
-@file{regex.c}.
+The Regex library is used by including @file{regex.h}.
@pindex regex.h
-@pindex regex.c
Regex provides three groups of functions with which you can operate on
regular expressions. One group---the @sc{gnu} group---is more powerful
but not completely compatible with the other two, namely the @sc{posix}
Egrep---in addition to syntaxes for @sc{posix} basic and extended
regular expressions.
-The predefined syntaxes--taken directly from @file{regex.h}---are:
+The predefined syntaxes---taken directly from @file{regex.h}---are:
-@example
+@smallexample
#define RE_SYNTAX_EMACS 0
#define RE_SYNTAX_AWK \
| RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES \
| RE_NO_BK_PARENS | RE_NO_BK_REFS \
| RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD)
-@end example
+@end smallexample
@node Collating Elements vs. Characters
@section Collating Elements vs.@: Characters
Its interaction with the syntax bits and pattern buffer fields is
exactly the dual of @samp{^}'s; see the previous section. (That is,
-``beginning'' becomes ``end'', ``next'' becomes ``previous'', and
-``after'' becomes ``before''.)
+``@samp{^}'' becomes ``@samp{$}'', ``beginning'' becomes ``end'',
+``next'' becomes ``previous'', ``after'' becomes ``before'', and
+``@code{not_bol}'' becomes ``@code{not_eol}''.)
@node GNU Operators
@vindex re_syntax_options @r{initialization}
Regular expressions match according to the syntax with which they were
compiled; with @sc{gnu}, you indicate what syntax you want by setting
-the variable @code{re_syntax_options} (declared in @file{regex.h} and
-defined in @file{regex.c}) before calling the compiling function,
-@code{re_compile_pattern} (see below). @xref{Syntax Bits}, and
-@ref{Predefined Syntaxes}.
+the variable @code{re_syntax_options} (declared in @file{regex.h})
+before calling the compiling function, @code{re_compile_pattern} (see
+below). @xref{Syntax Bits}, and @ref{Predefined Syntaxes}.
You can change the value of @code{re_syntax_options} at any time.
Usually, however, you set its value once and then never change it.