Search code examples
c#stringtrim

Trim a string in c# to go from this = 1:"Transmitters" to this = Transmitters


I want to trim a string that looks like this 1:"Transmitters" and i want it to look like this = Transmitters.


Solution

  • I take the title literally:

    str = str.Trim('1',':','"');