update position regex matcher