MB_EREG(3) 1 MB_EREG(3)
mb_ereg - Regular expression match with multibyte support
SYNOPSIS
int mb_ereg (string $pattern, string $string, [array $regs])
DESCRIPTION
Executes the regular expression match with multibyte support.
PARAMETERS
o $pattern
- The search pattern.
o $string
- The search string.
o $regs
- Contains a substring of the matched string.
RETURN VALUES
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 func-
tion returns 1 if it matches with the empty string. If no matches are found or an error happens, FALSE will be returned.
NOTES
Note
The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this
function.
SEE ALSO
mb_regex_encoding(3), mb_eregi(3).
PHP Documentation Group MB_EREG(3)