Fixed regex matching.