Change RegexUtils to an object instead of a class