[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT bash y direcciones ip



On 9/12/07, Exal de Jesus Garcia Carrillo <exal@gmx.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> P.S. faltó un ``{3}'' al final, quedaría:
>
>
>  [12]?[0-9]?[0-9](\.[12]?[0-9]?[0-9]){3}
>

Esto matchea 299.299.299.299 :P

Creo que la respuesta sería:

([01]?[0-9]?[0-9]|2([0-4][0-9]|5[0-5])(\.([01]?[0-9]?[0-9]|2([0-4][0-9]|5[0-5])){3}

Habría que revisarla en detalle pero debería de funcionar.

Saludos,
Toote
-- 
Web: http://www.enespanol.com.ar



Reply to: