Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- phone_number = input()
- search_pattern = r"\+359-2-\d{3}-\d{4}\b|\+359 2 \d{3} \d{4}\b"
- result = re.findall(search_pattern, phone_number)
- print(", ".join(result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement