modify macro regex