small change in regex code to fix header parsing