Fixing broken regex pattern