summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-04 11:11:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-04 11:11:52 +0200
commiteddaca33a81206aab7c6627e5c91d22232445adf (patch)
tree2aafa6d745db2b2e51ef5d616ca11ee44b2e5d54 /template.h
parent99e97dadf1d03c9db33d49e91b26ceb28a39ed1a (diff)
downloadrsyslog-eddaca33a81206aab7c6627e5c91d22232445adf.tar.gz
rsyslog-eddaca33a81206aab7c6627e5c91d22232445adf.tar.xz
rsyslog-eddaca33a81206aab7c6627e5c91d22232445adf.zip
enhanced property replacer to support multiple regex matches
Diffstat (limited to 'template.h')
-rw-r--r--template.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/template.h b/template.h
index dff06583..baf33d4e 100644
--- a/template.h
+++ b/template.h
@@ -69,6 +69,7 @@ struct templateEntry {
regex_t re; /* APR: this is the regular expression */
short has_regex;
short iMatchToUse;/* which match should be obtained (10 max) */
+ short iSubMatchToUse;/* which submatch should be obtained (10 max) */
enum {
TPL_REGEX_BRE = 0, /* posix BRE */
TPL_REGEX_ERE = 1 /* posix ERE */