summaryrefslogtreecommitdiffstats
path: root/doc/property_replacer.html
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-11-11 11:38:37 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-11-11 11:38:37 +0100
commit249b27952a9faea95662eb230f4c86a0db874fe5 (patch)
tree434584b110f09a3f08192e28c01f8bcfa0826cf1 /doc/property_replacer.html
parent170d0d6f375241e0d0ca85a1327df82165fec439 (diff)
downloadrsyslog-249b27952a9faea95662eb230f4c86a0db874fe5.tar.gz
rsyslog-249b27952a9faea95662eb230f4c86a0db874fe5.tar.xz
rsyslog-249b27952a9faea95662eb230f4c86a0db874fe5.zip
improved doc on property replacer regular expressions
Diffstat (limited to 'doc/property_replacer.html')
-rw-r--r--doc/property_replacer.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/property_replacer.html b/doc/property_replacer.html
index 34e2116c..9ea41aed 100644
--- a/doc/property_replacer.html
+++ b/doc/property_replacer.html
@@ -229,7 +229,7 @@ sequence with a regular expression is: "%msg:R:.*Sev:. \(.*\)
\[.*--end%"</p>
<p>It is possible to specify some parametes after the "R". These are
comma-separated. They are:
-<p>R,&lt;regexp-type&gt;,&lt;submatch&gt;,&lt;nomatch&gt;,&lt;match-number&gt;
+<p>R,&lt;regexp-type&gt;,&lt;submatch&gt;,&lt;<a href="rsyslog_conf_nomatch.html">nomatch</a>&gt;,&lt;match-number&gt;
<p>regexp-type is either "BRE" for Posix basic regular expressions or
"ERE" for extended ones. The string must be given in upper case. The
default is "BRE" to be consistent with earlier versions of rsyslog that
@@ -241,12 +241,8 @@ that the first match is number 0, the second 1 and so on. Up to 10 matches
(up to number 9) are supported. Please note that it would be more
natural to have the match-number in front of submatch, but this would break
backward-compatibility. So the match-number must be specified after "nomatch".
-<p>nomatch is either "DFLT", "BLANK" or "FIELD" (all upper case!). It tells
-what to use if no match is found. With "DFLT", the strig "**NO MATCH**" is
-used. This was the only supported value up to rsyslog 3.19.5. With "BLANK"
-a blank text is used (""). Finally, "FIELD" uses the full property text
-instead of the expression. Some folks have requested that, so it seems
-to be useful.
+<p><a href="rsyslog_conf_nomatch.html">nomatch</a> specifies what should
+be used in case no match is found.
<p>The following is a sample of an ERE expression that takes the first
submatch from the message string and replaces the expression with
the full field if no match is found: