Fix regexp match.