Created
July 14, 2012 14:47
-
-
Save elamperti/3111691 to your computer and use it in GitHub Desktop.
RegEx para teléfonos de Argentina
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
/(?<=\s|:)\(?(?:(0?[1-3]\d{1,2})\)?(?:\s|-)?)?((?:\d[\d-]{5}|15[\s\d-]{7})\d+)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@matudelatower esto es una expresión regular compatible con Perl (PCRE). Considerando que usa lookbehind es probable que no vayas a poder usarla fácilmente con javascript.