Fix regexp pattern.