From 89285bff8c969fbb2cd5ea5224bcc158f3d5bfb0 Mon Sep 17 00:00:00 2001 From: Jerome Magnin Date: Tue, 28 Jan 2020 13:33:44 +0100 Subject: [PATCH] DOC: word converter ignores delimiters at the start or end of input string The comments for match_word() in pattern.c mention that delimiters at the start or end of the input string will be ignored, but this is not mentionned in the documentation. Backport to all supported versions. (cherry picked from commit 882093249a5e2261040f1107a74b6d2581a25932) Signed-off-by: Willy Tarreau --- doc/configuration.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index 54d155b..0563022 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -14009,6 +14009,7 @@ word(,[,]) Extracts the nth word counting from the beginning (positive index) or from the end (negative index) considering given delimiters from an input string. Indexes start at 1 or -1 and delimiters are a string formatted list of chars. + Delimiters at the beginning or end of the input string are ignored. Optionally you can specify of words to extract (default: 1). Value of 0 indicates extraction of all remaining words. @@ -14018,6 +14019,7 @@ word(,[,]) str(f1_f2_f3__f5),word(3,_,2) # f3__f5 str(f1_f2_f3__f5),word(-2,_,3) # f1_f2_f3 str(f1_f2_f3__f5),word(-3,_,0) # f1_f2 + str(/f1/f2/f3/f4),word(1,/) # f1 wt6([]) Hashes a binary input sample into an unsigned 32-bit quantity using the WT6 -- 1.7.10.4