Remix.run Logo
▲ bertylicious an hour ago

Regex is overkill for this. Just split the input string on '<' and '>'.