]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: regsub: parser limitation about the inability to use closing square brackets
authorBaptiste Assmann <bedis9@gmail.com>
Sun, 6 Mar 2016 22:36:48 +0000 (23:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2016 15:13:24 +0000 (17:13 +0200)
We can't match range in regsub, since the closing bracket is evaluated
by the configuration parser.

backport: 1.6 and above

doc/configuration.txt

index 5dbcafe2ff26dc52d1fe6b28702c7e4c811fea1c..b671f05d84f706b813223a5a6ad911202f27e107 100644 (file)
@@ -11976,9 +11976,10 @@ regsub(<regex>,<subst>[,<flags>])
   string, it is made up from the concatenation of all desired flags. Thus if
   both "i" and "g" are desired, using "gi" or "ig" will have the same effect.
   It is important to note that due to the current limitations of the
-  configuration parser, some characters such as closing parenthesis or comma
-  are not possible to use in the arguments. The first use of this converter is
-  to replace certain characters or sequence of characters with other ones.
+  configuration parser, some characters such as closing parenthesis, closing
+  square brackets or comma are not possible to use in the arguments. The first
+  use of this converter is to replace certain characters or sequence of
+  characters with other ones.
 
   Example :