Regular expression to select everything outside <> in a string : <p>I'm not very handy with regex and I need to select everything outside &lt;> to get the length of the string, excluding the "&lt;>".</p>

<p>For example: <code>first&lt;second&gt;third&lt;fourth&gt;fifth</code> should give me <code>first third fifth</code>.</p>

<p>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.</p>
