Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[0-9]{1,2}(\.?[0-9]{3})(\.?[0-9]{3})(\-[0-9,k,K]$)
/
gm

Description

if (rut === "") { error += "Debe ingresar el rut.<br>"; }else { if (expRegRut.test(rut)===false) error +="Debe ingresar un rut valido (sin punto y con guion)<br>" }

Submitted by anonymous - 2 months ago