Title |
Test
Find
RUT and RUN
|
Expression |
^0*(\d{1,3}(\.?\d{3})*)\-?([\dkK])$ |
Description |
Matches any-length chilean RUT (Rol Unico Tributario) and RUN (RUT (Rol Unico Nacional), with or without dots as thousand separator, and with or without hyphen as verification digit separator. Grab 1st and 3rd match for best results. Delete the dots from 1st match
===
Calza con RUT chileno (Rol Unico Tributario) y RUN (RUT (Rol Unico Nacional) de cualquier largo, con o sin puntos separadores de miles, y con o sin guion como separador de digitos verificador. Considerar el 1er y 3er calce para mejores resultados. Eliminar los puntos del 1er calce |
Matches |
12.348-k | 00012348-k | 12348K |
Non-Matches |
123.48-k | 1.2-4 | 12348-k |
Author |
Rating:
Not yet rated.
Dinko Yaksic
|
Source |
|
Your Rating |
|
Title: RUT actual
Name: serge
Date: 6/11/2015 11:23:21 AM
Comment:
I'd propose for the RUT the following one:
^(\d{1,3}(\.?\d{3}){2})\-?([\dkK])$
Title: RUT actual
Name: serge
Date: 6/11/2015 11:22:26 AM
Comment:
I'd propose for the RUT the following one:
^(\d{1,3}(\.?\d{3}){2})\-?([\dkK])$
Title: ojo con los 10 millones
Name: carlos
Date: 3/11/2013 3:51:52 PM
Comment:
@AthosXtreme ojo, tu regex no valida con los rut de 10 millones
Title: Correccion
Name: AthosXtreme
Date: 1/23/2013 6:01:07 PM
Comment:
(^0?[1-9]{1,2})(?>((\.\d{3}){2}\-)|((\d{3}){2}\-)|((\d{3}){2}))([\dkK])$
Corrijo lo anterior
Title: Refactoring
Name: AthosXtreme
Date: 1/23/2013 5:55:32 PM
Comment:
(^0?[1-9]{1,2})(?>((\.\d{3}){2,}\-)|((\d{3}){2,}\-)|((\d{3}){2,}))([\dkK])$
Eso considera todas las opciones (con puntos y con guion, sin puntos y con guion, sin puntos y sin guion) y restricciones para el formato del RUT incluyendo lo mencionado por Andres.
Title: Expresión
Name: Andrés
Date: 6/10/2011 12:59:41 PM
Comment:
Esta expresión no debe permitir las entradas 12.348-k | 00012348-k | 12348K ya que no son validas para el formato de RUT Chileno.
Solo son entradas validas de la forma:
NN.NNN.NNN-X / donde N: Representa un digito numerico X: Representa un valor entre [0-9] o el caracter [k-K]
Ejemplos validos: 1.234.567-9 / 12.345.678-K / 1.234.567-k
no validos 123.456.789-0 / 12.345.678-A / 1234.5678.9101-1
Title: rut
Name: natalia
Date: 4/15/2011 9:56:43 AM
Comment:
necesito validar un rut en adf me podrias ayudar? .. el que aparece ahi no me funciona :(
Title: rut
Name: natalia
Date: 4/15/2011 9:49:13 AM
Comment:
necesito validar un rut en adf me podrias ayudar? .. el que aparece ahi no me funciona :(