Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gmassacc committed Oct 5, 2019
1 parent 641afb3 commit 9ff58b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pastepwn/analyzers/phonenumberanalyzer.py
@@ -0,0 +1,10 @@
from .regexanalyzer import RegexAnalyzer

class PhoneNumberAnalyzer(RegexAnalyzer):
"""Analyzer to match Phone Numbers"""

def __init__(self, action):
"""Analyzer to match international phone numbers"""
regex = r"^(\+[0-9]+\s*)?(\([0-9]+\))?[\s0-9\-]+[0-9]+$"

super().__init__(action, regex)

0 comments on commit 9ff58b9

Please sign in to comment.