Fix non-functional regex patterns.