title: Match characters from the set once regex
body: <p>So I have the string like this:
  *word/word: /2021-11?-[24] 15-12.xlsx</p>
  <p>From this string, I want to match the characters from the following set [:\/?*[]], but the idea here is that I only want to match any of them once, and ignore any further finds.</p>
  <p>My current solution using Regex library in C# is as follows:</p>
  <pre><code>string target = @&quot;*word/word: /2021\-11?-[24] 15-12.xlsx&quot;;
  string pattern = @&quot;[:\\/?*\[\]]&quot;;
  Regex.Matches(target, pattern);
  </code></pre>
  <p>Which gives the following result set <code>[*,/,/,\,:,?,[,]]</code></p>
  <p>What I'm after is something like <code>[*,/,\,:,?,[,]]</code> where duplicates are ignored.</p>
  <p>And in cases like this:</p>
  <p>*word/word: 2021-11-[24] 15-12.xlsx</p>
  <p>Match <code>[*,/,:,[,]]</code> (It does not have to match every char from set.</p>