Split on multiple character combination? Like '~INS|'

cboshdave

Member
Joined
Dec 11, 2014
Messages
24
Programming Experience
1-3
I split all the time on single characters. I needs to split on a combination of characters though. Like '~INS|'. I can't seem to make this work. Is this possible? In other words, split my line of text on every instance of these characters together.

Thanks,
Dave
 
The String.Split method is overloaded and allows you to split on single characters or substrings. Simply call one of the overloads that splits on substrings. You should have already but I'm guessing you haven't, so I recommend immediately using the Help menu on your IDE to open the MSDN documentation and read what it says about String.Split. It will show you all the overloads and you then pick the one you need.
 
Back
Top Bottom