Docs: note that } chars in a RE are also needing escaping for ${sg }
authorJeremy Harris <jgh146exb@wizmail.org>
Wed, 18 Oct 2017 21:34:12 +0000 (22:34 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 18 Oct 2017 21:34:12 +0000 (22:34 +0100)
doc/doc-docbook/spec.xfpt

index c14094515c78acc20952e7ea736ffd3a969e6db9..29d0d900edcdf99fde6126e7e7fb64018da0c8c0 100644 (file)
@@ -9967,7 +9967,7 @@ a regular expression, and a substitution string. For example:
 ${sg{abcdefabcdef}{abc}{xyz}}
 .endd
 yields &"xyzdefxyzdef"&. Because all three arguments are expanded before use,
-if any $ or \ characters are required in the regular expression or in the
+if any $, } or \ characters are required in the regular expression or in the
 substitution string, they have to be escaped. For example:
 .code
 ${sg{abcdef}{^(...)(...)\$}{\$2\$1}}