A predefined / precompiled regex. More...
Data Fields | |
enum Prex | which |
Regex type, e.g. PREX_URL. | |
size_t | nmatches |
Number of regex matches. | |
const char * | str |
Regex string. | |
regex_t * | re |
Compiled regex. | |
regmatch_t * | matches |
Resulting matches. | |
A predefined / precompiled regex.
This struct holds a predefined / precompiled regex including data representing the corresponding identification enum, the regular expression in string format, information on how many matches it defines, and storage for the actual matches. The enum entry is not strictly necessary, but is kept together with the regex for validation purposes, as it allows checking that the enum and the array defined in prex() do not go out of sync.