<< Previous Contents Index Next >>

E.3. Regular expressions

Regular expressions are used in BSD path matching. ipacc uses the standard regex library to do the path match. Prior to compiling the regular expression, any underscore characters (_) are replaced with the string "(^|[,{}()[:space:]]|$)". The effect is that the underscore matches parentheses, curly brackets, commas, spaces or the start or end of the line. This is intended to provide similar functionalitity to the regular expressions provided on routers. Note that unlike the router expressions, curly brackets are special (used for bounds) and must be quoted.

Regular expressions are described in the manual pages for the regex functions provided with the system libraries. The following is extracted from the regex(7) (or re_format(7) on FreeBSD) manual pages:


<< Previous Contents Index Next >>