From 9efa59016ea86c11db020aa9036deee18cd3e666 Mon Sep 17 00:00:00 2001 From: qodelicious <162776175+qodelicious@users.noreply.github.com> Date: Sun, 18 Oct 2026 06:27:01 +0000 Subject: [PATCH 1/2] Add \Q, \E and \K to the PCRE escape sequences Fixes #4623 --- reference/pcre/pattern.syntax.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 98d239fe64df..57484143fb2b 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -610,6 +610,25 @@ preg_match. It differs from \A when the value of offset is non-zero. + + Backslash is also used for the following sequences: + + + + + \Q + start of a quoted sequence, metacharacters up to \E are treated as literals + + + \E + end of a quoted sequence started by \Q + + + \K + reset the start of the reported match + + + \Q and \E can be used to ignore From 4a861314b3c9574e4e42e48e0e8247db2457588d Mon Sep 17 00:00:00 2001 From: qodelicious <162776175+qodelicious@users.noreply.github.com> Date: Sun, 18 Oct 2026 09:15:16 +0000 Subject: [PATCH 2/2] Use simpara for the sequences intro --- reference/pcre/pattern.syntax.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 57484143fb2b..473459a7f938 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -610,9 +610,9 @@ preg_match. It differs from \A when the value of offset is non-zero. - + Backslash is also used for the following sequences: - +