This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//VALIDAR CAMPO IP 255.255.255.255 | |
Validators.pattern(/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/) | |
//VALIDAD SOLO NÚMEROS | |
Validators.pattern(/^([0-9])*$/),//solo numeros | |
//VALIDAD CAMPO REQUERIDO | |
Validators.required, | |
//VALIDA TELEFONO |