Regular Expressions 101

Community Patterns

Word with accent mark or ñ

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 - 4 years ago