fork download
  1. import re
  2. sentence='<30>Jan 11 11:45:50 test-tt systemd[1]: tester-test.service: activation successfully.'
  3. chunks = sentence.split(': ', 1)
  4. result = re.findall(r'[^][\s,<>]+', chunks[0])
  5. result.append(chunks[1])
  6. print(result)
Success #stdin #stdout 0.02s 9460KB
stdin
Standard input is empty
stdout
['30', 'Jan', '11', '11:45:50', 'test-tt', 'systemd', '1', 'tester-test.service: activation successfully.']