Fix regex matching.