Fixed regex which wasn't matching correctly.