Untitled
unknown
plain_text
6 months ago
563 B
20
Indexable
text = """x1ey2m1c x9f619 xtijo5x x1o0tod x10l6tqk x13vifvy x1ypdohk"""
pattern = re.compile(r'''
(?:\+63\d{1,3}[\s\-\.\)]*)? # optional country code
(?:\(?\d{2,4}\)?[\s\-\.\)]*) # area/operator code
(?:\d{2,4}[\s\-\.\)]*){1,3} # subscriber number
''', re.VERBOSE)
matches = [m.group(0).strip() for m in pattern.finditer(text)]
cleaned = sorted({re.sub(r'[\s\-\.\)]{2,}', ' ', m).strip(' .-') for m in matches if len(m.strip()) >= 7})
if cleaned:
print("📞 Found phone numbers:")
for num in cleaned:
print(num)Editor is loading...
Leave a Comment