Regex for specific characters : <p>I'm trying to refactor this piece of code:</p>

<pre><code>if(!RenamePCTextBox.Text.Any(c =&gt; c == '\\' || c == '/' || c == ':' || c == '*' || c == '?' || c == '"' || c == '&lt;' || c == '&gt;' || c == '|' || c == '.' || c == ' ' || c == ',' || c == '~' || c == '!' || c == '@' || c == '#' || c == '$' || c == '%' || c == '^' || c == '&amp;' || c == '\'' || c == '(' || c == ')' || c == '{' || c == '}' || c == '_' || c == '[' || c == ']') &amp;&amp; !String.IsNullOrEmpty(RenamePCTextBox.Text))
        {
            LabelCanUsePCName.Content = "You can use this name";
            LabelCanUsePCName.Foreground = Brushes.DarkGreen;
        }
</code></pre>

<p>I would like to know if there is way to write it in regex expression? I think this code looks realy ugly this way. Or what would be better aproach for this?</p>

<p>I need to disable only characters above, another other character wanna leave for usage (like "-" for example).</p>
