KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What I want to do is to split on the nth occurrence of a string (in this case it's "\t"). This is the code I'm currently using and it splits on every occurrence of "\t". string[] items = input.Split(new char[] {'\t'}, StringSplitOptions.RemoveEmptyEntries); If input = "one\ttwo\tthree\tfour", my code returns the array of: one two three four But let's say I want to split it on every "\t" after the second "\t". So, it should return: one two three four
Tags (comma-separated)
Save Edits
Cancel