string Example 1 : abc /
string Example 2 : abc / cdf / /
string Example 3 : abc / / / /
string Example 4 : / / / / /
string Example 5 : abc / / xyz / / /
I need to remove the slashes in string with many scenarios. I guess the scenarios is self explanatory in the expected result below.
Result:
string Example 1 : abc
string Example 2 : abc / cdf
string Example 3 : abc
string Example 4 :
string Example 5 : abc / xyz
How do I do this usng vb.net?
abc / / cdf / /, what should it yeild? I'm guessingabc / cdf, is that correct?