docs, extracted regexes to locals