test regexp template expansion