refactoring: introducing RegexEntry