Catch invalide regex exception