Fixed regex patterns.