Added two more ways to try to catch header token. Added fix in preg_match.