Splitting a String by specific character

suggest change
string helloWorld = "hello world, how is it going?";
string[] parts1 = helloWorld.Split(',');

//parts1: ["hello world", " how is it going?"]

string[] parts2 = helloWorld.Split(' ');

//parts2: ["hello", "world,", "how", "is", "it", "going?"]

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents