Split a string with different delimiters
String StringToSplit = "aa;bb,cc;dd";
char[] delimiters = new char[] { ';', ',' };
StringToSplit.Split(delimiters);
Written by Marcus Olsson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#String
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#