(perform-replace): When matching regexps, if the next match is