changed preg_match from /AU to /AUi flags to catch headers case insensitive