PHP 8.5.0 Alpha 2 available for testing

mb_ereg_match

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

mb_ereg_matchExpresión regular POSIX para strings multibyte

Descripción

mb_ereg_match(string $pattern, string $string, ?string $options = null): bool

Ejecuta la expresión regular POSIX para strings multibyte.

Nota: pattern se asocia únicamente al inicio de string.

Parámetros

pattern

La expresión regular.

string

El string a evaluar.

options

La opción de búsqueda. Para más explicaciones, consulte mb_regex_set_options().

Valores devueltos

string retorna true si string verifica la expresión regular pattern, false en caso contrario.

Historial de cambios

Versión Descripción
8.0.0 options ahora es nullable.

Notas

Nota:

The internal encoding or the character encoding specified by mb_regex_encoding() will be used as the character encoding for this function.

Ver también

  • mb_regex_encoding() - Define/Recupera la codificación de caracteres para las expresiones regulares multioctetos
  • mb_ereg() - Búsqueda por expresión regular con soporte para caracteres multibyte

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top