I have this sentence <>><<>, I want to remove <> character from that sentence.
example:
<>><<>
should become:
><
All <> should be removed from the sentence.
I dont know what should i use.
I have this sentence <>><<>, I want to remove <> character from that sentence.
example:
<>><<>
should become:
><
All <> should be removed from the sentence.
I dont know what should i use.
Since you're answer is posted with python tag I'll reply with both languages.
Python:
string = '<>><<>'
print(string.replace('<>', ''))
C#: You can follow 2 ways:
Specify in an Array the characters you want to delete (in case you want to delete multiple characters)
Delete directly the characters
1:
var str = "<>><<>";
var charsToRemove = new string[] { "<>", "another character you want to remove"};
foreach (var c in charsToRemove)
{
str = str.Replace(c, string.Empty);
}
2:
string = "<>><<>"
string.Replace("<>", string.Empty)