Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- from sys import stdin
- PATTERN = r'\b[A-Z][a-z]+\b - \b[A-Z][a-z]+\b : [0-9][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9]\b'
- input_str = stdin.read()
- res = re.findall(PATTERN, input_str)
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement