import re


def get_process_id_and_name(header):
  """Get process id from header."""
  m_process_num = re.match(r'(.*)[(]\s*(\d+)[)]', header)
  if not m_process_num:
    return None

  return int(m_process_num.group(2)), m_process_num.group(1).strip()