fixing the regex for cm to make it compatible with pmsxchangev2