Fixed error with regex matching.