fork download
  1. import re
  2. regex = r"\w+\ \d\d?,\ \d{4}"
  3. test_str = "October 13, 2018 / 1:31 AM / Updated 5 hours ago"
  4. matches = re.search(regex, test_str)
  5. if matches:
  6. print (matches.group())
Success #stdin #stdout 0s 23296KB
stdin
Standard input is empty
stdout
October 13, 2018