Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?!\s)([a-záéíóúÁÉÍÓÚüÜñÑ'°.A-ZÑ0-9\s]){0,50}[a-záéíóúÁÉÍÓÚüÜñÑ'°.A-ZÑ0-9]$
/
gm

Description

Sin espacio al inicio o fin, sin caracteres especiales

Submitted by Brahian Torres - 2 years ago (Last modified 2 years ago)