C# Split A String By Another String


string data = "India, officially the Republic of India (Bharat Ganrajya)[c], is a country in South Asia. It is the seventh-largest country by area, the second-most populous country with over 1.2 billion people, and the most populous democracy in the world ";

return data.Split(new string[] { "populous" }, StringSplitOptions.None);
Next PostNewer Post Previous PostOlder Post Home

1 comment: