Advertisement
andmalv

[Tip] Validar Cedula de Identidad

Mar 31st, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. if [[ $ci =~ ^[0-9]\.[0-9]{3}.[0-9]{3}\-[0-9]{1}$ ]]; then
  2.     echo "C.I valida."
  3. else
  4.     echo "C.I invalida."
  5. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement