memorize regex