title: Split string with multiple separators in C#
body: <p>I am having trouble splitting a string in C# with a delimiters <code>&amp;&amp;</code> and <code>||</code>.</p>
  
  <p>For example the string could look like:</p>
  
  <pre><code>"(abc)&amp;&amp;(rfd)&amp;&amp;(5)||(hh)&amp;&amp;(nn)||(iu)"
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>string[] value = arguments.Split(new string[] { "&amp;&amp;" }, StringSplitOptions.None);
  </code></pre>
  
  <p>I need to split or retrieve values in array without <code>()</code> braces - I need thte output to be</p>
  
  <pre><code>"abc" "rfd" "5" "nn" "iu"
  </code></pre>
  
  <p>and I need it in an array</p>
  
  <pre><code>Dictionary&lt;string, string&gt; dict = new Dictionary&lt;string, string&gt;();
              dict.Add("a", "value1");
              dict.Add("abc", "value2");
              dict.Add("5", "value3");
              dict.Add("rfd", "value4");
              dict.Add("nn", "value5");
              dict.Add("iu", "value6");
  
  foreach (string s in strWithoutBrackets)
  {
       foreach (string n in dict.Keys)
       {
            if (s == n)
            { 
                 //if match then replace dictionary value with s
            }
        }
  }
  
   ///Need output like this
   string outputStr = "(value1)&amp;&amp;(value2)&amp;&amp;(value3)||(value4)&amp;&amp;(value5)||(value6)";
  </code></pre>