diff --git a/reference/mbstring/functions/mb-ereg.xml b/reference/mbstring/functions/mb-ereg.xml
index 72da82df68..9fb93dd247 100644
--- a/reference/mbstring/functions/mb-ereg.xml
+++ b/reference/mbstring/functions/mb-ereg.xml
@@ -51,10 +51,10 @@
array.
- $regs[1] will contain the substring which starts at
- the first left parenthesis; $regs[2] will contain
+ $matches[1] will contain the substring which starts at
+ the first left parenthesis; $matches[2] will contain
the substring starting at the second, and so on.
- $regs[0] will contain a copy of the complete string
+ $matches[0] will contain a copy of the complete string
matched.
diff --git a/reference/mbstring/functions/mb-eregi.xml b/reference/mbstring/functions/mb-eregi.xml
index 7218e1edb5..c895c3d7bb 100644
--- a/reference/mbstring/functions/mb-eregi.xml
+++ b/reference/mbstring/functions/mb-eregi.xml
@@ -51,10 +51,10 @@
array.
- $regs[1] will contain the substring which starts at
- the first left parenthesis; $regs[2] will contain
+ $matches[1] will contain the substring which starts at
+ the first left parenthesis; $matches[2] will contain
the substring starting at the second, and so on.
- $regs[0] will contain a copy of the complete string
+ $matches[0] will contain a copy of the complete string
matched.