Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- pattern = r'\b(?P<Day>[0-9]{2})([./-])(?P<Month>[A-Z][a-z]{2})\2(?P<Year>[0-9]{4})\2(?P=Day)'
- match = re.search(pattern,"23.May.1989.23")
- print(match)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement