[doc-en] master: preg_match: the A modifier works with offset (#5887)
| From: | KentarouTakeda via GitHub | Date: | Sun, 27 Sep 2026 17:59:19 +0000 |
| Subject: | [doc-en] master: preg_match: the A modifier works with offset (#5887) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23784@lists.php.net to get a copy of this message | ||
Author: KentarouTakeda (KentarouTakeda)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-09-27T19:59:16+02:00
Commit: https://github.com/php/doc-en/commit/f88f34ad2f28993c120074306cccfc02a2a00db1
Raw diff: https://github.com/php/doc-en/commit/f88f34ad2f28993c120074306cccfc02a2a00db1.diff
preg_match: the A modifier works with offset (#5887)
Changed paths:
M reference/pcre/functions/preg-match.xml
Diff:
diff --git a/reference/pcre/functions/preg-match.xml b/reference/pcre/functions/preg-match.xml
index a1d428e3d278..b2b452f4e813 100644
--- a/reference/pcre/functions/preg-match.xml
+++ b/reference/pcre/functions/preg-match.xml
@@ -258,7 +258,7 @@ Array
<simpara>
Alternatively, to avoid using <function>substr</function>, use the
<literal>\G</literal> assertion rather than the
<literal>^</literal> anchor, or
- the <literal>A</literal> modifier; both of which do not work with
+ the <literal>A</literal> modifier instead, both of which work with
the <parameter>offset</parameter> parameter.
</simpara>
</informalexample>