fixing a regex issue