Suppose I have string like below:
<a>b<c>
I want to remove both <a> and <c>, but I can’t use gsub("<.*>","","<a>b<c>") as this will remove the b also.
I asked a similar question before, but on a second thought, I think I should learn in general, how to deal with this kind of problems. Thanks.
Don’t allow a closing bracket
>in the stuff between the brackets: