Advertisement
STANAANDREY

extract flight data

Dec 23rd, 2022
1,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import re
  2. from sys import stdin
  3.  
  4. 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'
  5. input_str = stdin.read()
  6. res = re.findall(PATTERN, input_str)
  7.  
  8. print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement