Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(\w+[a-zA-ZñÑáéíóúÁÉÍÓÚ\s])
/

Description

English

Will match any word that has an accent mark or the letter 'ñ' on it. Useful for text In spanish.

Español

Hará match con cualquier palabra con una tilde o 'ñ' que se use en el idioma español.

Submitted by anonymous - 5 years ago