use recursive regex for interpolation