I'm not very handy with regex and I need to select everything outside <> to get the length of the string, excluding the "<>".
For example: first<second>third<fourth>fifth
should give me first third fifth
.
How can I do it? I spent some hours searching the web but I didn't really find what I needed. The regex is needed for use in javascript.