~ # % & * { } + \ / : < > ? | " . REGEX [~#%&*{}+\\/:<>?|'".]+ const hasInvalidCharacters = teamName.match(/[~#%&*{}+\\/:<>?|'".]+/gi);