From 23cb2670857d8113f961bb8d8e630f7b57bb572c Mon Sep 17 00:00:00 2001 From: Richard Bairwell Date: Sat, 4 Jul 2026 16:45:53 +0100 Subject: [PATCH] Update preg-match.xml Try to clarify the language around using \G instead of substr. It read as if ^ and \A both worked with offset and to use use \A instead of ^. --- reference/pcre/functions/preg-match.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pcre/functions/preg-match.xml b/reference/pcre/functions/preg-match.xml index 8e2224c59f97..777eae4e532a 100644 --- a/reference/pcre/functions/preg-match.xml +++ b/reference/pcre/functions/preg-match.xml @@ -232,7 +232,7 @@ Array Alternatively, to avoid using substr, use the \G assertion rather than the ^ anchor, or - the A modifier instead, both of which work with + the A modifier - both of which do not work with the offset parameter.