/ID\s+(\d+).+P_ID\s+(\d+)/; $id = $1; $pid = $2