fork download
  1. import re
  2. text = """ntpd process is not running on lnx31 contact: app-support. @monitoringautomation
  3. ntpd process is not running on lnx31 contact: app-support, @monitoringautomation
  4. ntpd process is not running on lnx31 contact app-support @monitoringautomation"""
  5. print( re.findall(r"(?i)\bcontact:*\s*([^,.\s]+)", text) )
Success #stdin #stdout 0.02s 9496KB
stdin
Standard input is empty
stdout
['app-support', 'app-support', 'app-support']