Fixed parsing regex to ignore headers