I am having trouble splitting a string when a character is found. I know how to split strings when it is in an array. But I don't know how to split a string when it is passed as a command line argument. This is a string argument that gets passed in and I have to add spaces when the bitwise Or is found and also when the colon is found I have to add a new line. I don't really know how to approach this problem when it gets passed as a argument. Any help would be awesome thanks.
"Tassimo T46 Home Brewing System|43-0439-6|17999|0.30:Moto Precise Fit Rear"+
"Wiper Blade|0210919|799|0.0: Easton Stealth Reflex Composite Hockey Stick|"+
"83-4567-0|8999|0.5:Yardworks 4-Ton Log Splitter|60-3823-0|39999|0"