Added possiblity to check for headers with regex