C# Split Function in ASP.Net

C# Split string function provides the functionality to break a string into an array of substrings. Split function breaks a string delimited with some elements into an string array. You can pass the list of delimiters/separators as char array or string if the specified string has number of delimiters. You can also control whether to omit empty elements or not. Another optional parameter Count enables you to control the maximum number of substrings to return.

Try this sample to learn the different types of split operations that you can perform over a string value:

Enter String:
Enter Separators:
[Please enter each separator character in new new line by pressing enter.]
Count:
[optional]
Output: