Advertisement
horozov86

phone_numbers

Mar 18th, 2023
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import re
  2.  
  3. phone_number = input()
  4. search_pattern = r"\+359-2-\d{3}-\d{4}\b|\+359 2 \d{3} \d{4}\b"
  5. result = re.findall(search_pattern, phone_number)
  6.  
  7. print(", ".join(result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement