Refactoring: use regex! macro