Last active
September 25, 2020 01:29
-
-
Save jaimeguaman/5820055 to your computer and use it in GitHub Desktop.
regex telefonos fijo chile
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
/^((\+?56\s)?(0?2|0?3[2-5]|0?4[1-5]|0?5[123578]|0?6[13457]|0?7[1235])?(\s2\d{6}|\s\d{6}))$/ | |
'+56 2 2xxxxxx', | |
'+56 51 2xxxxxx', | |
'+56 51 xxxxxx', | |
'56 75 xxxxxx', | |
'56 051 xxxxxx', | |
'56 051 2xxxxxx', | |
'+56 051 2xxxxxx' | |
valida codigos de area nacional segun | |
http://www.entel.cl/ayudalinea/codigos_area_nacional.html |
No estoy seguro si aún es válido eso si XD, la de celulares está actualizada, esta nop
Gracias por mencionarlo! Saludos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Buena!!