title: Write a function or regular expression that will split string in sql
body: <p>i have in sql table values in this way:</p>
  
  <pre><code>Id GameId GameSupplierId
  1  1      NULL
  2  2      NULL
  3  3      1
  4  3      2
  5  3      3
  </code></pre>
  
  <p>What i want is to filter in sql procedure by GameId and if there is GameSupplierId by supplier too. I will get string from my web page in format GameID ; GameSupplierId. For example:</p>
  
  <pre><code>1; NULL
  2; NULL
  </code></pre>
  
  <p>or if there is GameSupplier too </p>
  
  <pre><code>3;1
  3;1,2
  </code></pre>
  
  <p>Also i want to have multiple choice for example like this:</p>
  
  <pre><code>1,2,3;1,2
  </code></pre>
  
  <p>In my sql query i will then filter like <code>WHERE @GameID = Table.GameID (and also to check @GameSupplierId IN (,,,))</code></p>