diff --git a/reference/mbstring/functions/mb-ereg.xml b/reference/mbstring/functions/mb-ereg.xml
index bca2f628f7..20efc58bc2 100644
--- a/reference/mbstring/functions/mb-ereg.xml
+++ b/reference/mbstring/functions/mb-ereg.xml
@@ -43,7 +43,17 @@
regs
- Contains a substring of the matched string.
+ If matches are found for parenthesized substrings of
+ pattern and the function is called with the
+ third argument regs, the matches will be stored
+ in the elements of the array regs.
+
+
+ $regs[1] will contain the substring which starts at
+ the first left parenthesis; $regs[2] will contain
+ the substring starting at the second, and so on.
+ $regs[0] will contain a copy of the complete string
+ matched.
@@ -53,16 +63,15 @@
&reftitle.returnvalues;
-
- Executes the regular expression
- match with multibyte support, and returns 1 if matches are found.
- If the optional regs parameter was specified, the function
- returns the byte length of matched part, and the array
- regs will contain the substring of matched
- string. The function returns 1 if it matches with the empty
- string. If no matches are found or an error happens, &false; will be
- returned.
-
+
+ Returns the byte length of the matched string if a match for
+ pattern was found in string,
+ or &false; if no matches were found or an error occurred.
+
+
+ If the optional parameter regs was not passed or
+ the length of the matched string is 0, this function returns 1.
+
diff --git a/reference/mbstring/functions/mb-eregi.xml b/reference/mbstring/functions/mb-eregi.xml
index e9b4aaba67..cdc492864b 100644
--- a/reference/mbstring/functions/mb-eregi.xml
+++ b/reference/mbstring/functions/mb-eregi.xml
@@ -43,7 +43,17 @@
regs
- Contains a substring of the matched string.
+ If matches are found for parenthesized substrings of
+ pattern and the function is called with the
+ third argument regs, the matches will be stored
+ in the elements of the array regs.
+
+
+ $regs[1] will contain the substring which starts at
+ the first left parenthesis; $regs[2] will contain
+ the substring starting at the second, and so on.
+ $regs[0] will contain a copy of the complete string
+ matched.
@@ -53,16 +63,15 @@
&reftitle.returnvalues;
-
- Executes the regular expression
- match with multibyte support, and returns 1 if matches are found.
- If the optional regs parameter was specified, the function
- returns the byte length of matched part, and the array
- regs will contain the substring of matched
- string. The function returns 1 if it matches with the empty
- string. If no matches are found or an error happens, &false; will be
- returned.
-
+
+ Returns the byte length of the matched string if a match for
+ pattern was found in string,
+ or &false; if no matches were found or an error occurred.
+
+
+ If the optional parameter regs was not passed or
+ the length of the matched string is 0, this function returns 1.
+
diff --git a/reference/regex/functions/ereg.xml b/reference/regex/functions/ereg.xml
index f89f2b5892..1b883b4b74 100644
--- a/reference/regex/functions/ereg.xml
+++ b/reference/regex/functions/ereg.xml
@@ -81,7 +81,7 @@
If the optional parameter regs was not passed or
- the length of the matched string is 0, this function returns 1.
+ the length of the matched string is 0, this function returns 1.
diff --git a/reference/regex/functions/eregi.xml b/reference/regex/functions/eregi.xml
index 8864f50b5f..9ee942c4c6 100644
--- a/reference/regex/functions/eregi.xml
+++ b/reference/regex/functions/eregi.xml
@@ -63,9 +63,10 @@
in the elements of the array regs.
- $regs[1] will contain the substring which starts at the first left
- parenthesis; $regs[2] will contain the substring starting at the
- second, and so on. $regs[0] will contain a copy of the complete string
+ $regs[1] will contain the substring which starts at
+ the first left parenthesis; $regs[2] will contain
+ the substring starting at the second, and so on.
+ $regs[0] will contain a copy of the complete string
matched.
@@ -83,7 +84,7 @@
If the optional parameter regs was not passed or
- the length of the matched string is 0, this function returns 1.
+ the length of the matched string is 0, this function returns 1.