79163532

Date: 2024-11-06 17:01:14
Score: 1
Natty:
Report link

Here is my solution.

def show_time_of_pid(line):
  pattern = r"(\w+ \d [\d:]+)([\S ]+)\[(\d+)\]"
  result = re.search(pattern, line)
  return "{} pid:{}".format(result.group(1), result.group(3))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: A K