cuter way of calling sampler function for a given regex parse node name