Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^\d{1,2}(.?\d{3}){2}-[\dkK]$
/
gm

Description

Validación de formato de RUT chileno. Permite el punto en posiciones correctas. 15.000.000-9 ó 15000000-9

Submitted by Pablo - a day ago