FILE ... TOC

Converts a pattern to a regular expression

Usage:

             $regexp = &regexp_it("wildchar pattern*");

Domains in the config file can be given as wild charactered strings. This routine converts these strings to Perl regular expression.

This is nothing else then quotemeta all the string and convert the wild character * to.*

Some user may like to specify Perl regular expressions saying

             regexp perl

in the RDF file. The effect of that command is that the global variable $regexps_are_perl is set. When that variable is true this function becomes transparent and returns the strings as they came is.

FILE ... TOC