Skip to content

Instantly share code, notes, and snippets.

@Me1000
Created May 15, 2012 21:33
Show Gist options
  • Select an option

  • Save Me1000/2705311 to your computer and use it in GitHub Desktop.

Select an option

Save Me1000/2705311 to your computer and use it in GitHub Desktop.
_VALID_PUNCTUATION = (u"-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F " +
u"\u00A0\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E")
_VALID_PHONE_NUMBER = (u"[" + _PLUS_CHARS + u"]*(?:[" + _VALID_PUNCTUATION + _STAR_SIGN + u"]*" + _DIGITS + u"){3,}[" +_VALID_PUNCTUATION + _STAR_SIGN + _VALID_ALPHA + _DIGITS + u"]*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment