Skip to content

Instantly share code, notes, and snippets.

@elamperti
Created July 14, 2012 14:47
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save elamperti/3111691 to your computer and use it in GitHub Desktop.
Save elamperti/3111691 to your computer and use it in GitHub Desktop.
RegEx para teléfonos de Argentina
/(?<=\s|:)\(?(?:(0?[1-3]\d{1,2})\)?(?:\s|-)?)?((?:\d[\d-]{5}|15[\s\d-]{7})\d+)/
@matudelatower
Copy link

para que lenguaje es? necesito uno para jquery

@elamperti
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment