Make utils template method to use global regex