diff --git a/reference/pcre/functions/preg-match.xml b/reference/pcre/functions/preg-match.xml
index 804246a03c..f2227b23e6 100644
--- a/reference/pcre/functions/preg-match.xml
+++ b/reference/pcre/functions/preg-match.xml
@@ -174,6 +174,16 @@ Array
+
+ 5.2.2
+
+ Named subpatterns now accept the
+ syntax (?<name>)
+ and (?'name') as well
+ as (?P<name>). Previous versions
+ accepted only (?P<name>).
+
+
4.3.3
@@ -275,8 +285,12 @@ domain name is: php.net
$str = 'foobar: 2008';
+// Works in PHP 5.2.2 and later.
preg_match('/(?\w+): (?\d+)/', $str, $matches);
+// Before PHP 5.2.2, use this:
+// preg_match('/(?P\w+): (?P\d+)/', $str, $matches);
+
print_r($matches);
?>