How do I split a string into substring?

Use the Split method when the substrings you want are separated by a known delimiting character (or characters) . Regular expressions are useful when the string conforms to a fixed pattern. Use the IndexOf and Substring methods in conjunction when you don’t want to extract all of the substrings in a string.

Read more