[build] check regexes: memorize checked regexes