silc_regex_compile

SYNOPSIS

    SilcBool silc_regex_compile(SilcRegex regexp, const char *regex,
                                SilcRegexFlags flags);

DESCRIPTION

Compiles the regular expression string `regex'. The `regexp' is a pre-allocated regular expression context. The `flags' define various feature flags. This function must be called before the silc_regex_match can be used to find matches.

Returns TRUE after the compilation is completed. Returns FALSE on error and sets silc_errno.