title: How to splitting special character '##' and '}'
body: <p>I already tried <a href="https://stackoverflow.com/questions/11889780/how-to-split-a-string-with-in-c-sharp">Here</a> and <a href="https://stackoverflow.com/questions/11889780/how-to-split-a-string-with-in-c-sharp">here too</a>
  still no luck.</p>
  
  <p>Text1:</p>
  
  <blockquote>
    <p>Some text that contained } and again } or maybe }</p>
  </blockquote>
  
  <p>Text2:</p>
  
  <blockquote>
    <p>Some text that contained ## and again ## or maybe ##</p>
  </blockquote>
  
  <p>Here My code</p>
  
  <pre><code>string str1 = "Some text that contained } and again } or maybe }";
  // Some time its contained ##
  
  string[] words;
  if (str1.Contains("}"))
  {
      words = str1.Split("}");
  }
  else if (str1.Contains ("##"))
  {
      words = str1.Split("##");
  } else {
      words = null;
  }
  </code></pre>
  
  <p>I got 2 error</p>
  
  <blockquote>
    <p>The best overloaded method match for 'string.Split(params char[])' has some invalid arguments </p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>Argument '1': cannot convert from 'string' to 'char[]'           }</p>
  </blockquote>