Fix regex matches.