Here’s a one-liner:
|
|
Explanation
With the above line, we are removing every shortest set of symbols within triangle brackets. The word shortest is very important here. Have a look at this wiki page for more information about greedy and lazy matching, under Lazy quantification.