diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index e9dbcb9f8a005731f863b575d44cd2c8b4baa3ad..38791865f61716e1e4655e18e02966a14b1d6458 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -4981,7 +4981,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
     will never match the newline character
     (so that matches will never cross newlines unless the RE
     explicitly arranges it)
-    and <literal>^</>and <literal>$</>
+    and <literal>^</> and <literal>$</>
     will match the empty string after and before a newline
     respectively, in addition to matching at beginning and end of string
     respectively.