in reply to pattern matching

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


Hotshot