new version of the extractor, with all regex in the header