I already tried [Here](https://stackoverflow.com/questions/11889780/how-to-split-a-string-with-in-c-sharp) and [here too](https://stackoverflow.com/questions/11889780/how-to-split-a-string-with-in-c-sharp)
still no luck.

Text1:

> 
> Some text that contained } and again } or maybe }
> 
> 
> 

Text2:

> 
> Some text that contained ## and again ## or maybe ##
> 
> 
> 

Here My 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;
}

```

I got 2 error

> 
> The best overloaded method match for 'string.Split(params char[])' has some invalid arguments 
> 
> 
> 

and

> 
> Argument '1': cannot convert from 'string' to 'char[]' }
> 
> 
>