Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

split string and remove some and re-create again

List<string> splitList = input.Split(';').ToList();
splitList.RemoveAt(3);

//Re-create the string
string outputString = string.Join(";", splitList);
//output is: "one;two;three;five;six"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #remove
ADD COMMENT
Topic
Name
2+7 =