slightly more robust record boundary regex