title: TextPad Regex: How to Find and Replace character within angle brackets?
body: <p>I've got the below sample text</p>
  
  <pre><code>Hello | World
  &lt;Hi | Hello|How | are | you&gt;&lt;test|string |for |regex&gt;
  sample | text &lt;however|replace|pipe&gt;
  </code></pre>
  
  <p>to be converted as below</p>
  
  <pre><code>Hello | World
  &lt;Hi ~ Hello~How ~ are ~ you&gt;&lt;test~string ~for ~regex&gt;
  sample | text &lt;however~replace~pipe&gt;
  </code></pre>
  
  <p>i.e. Replace <code>|</code> within <code>&lt;&gt;</code> with <code>~</code></p>
  
  <p>I tried this <code>&lt;(?:.*?)(\|)(?:.*?)&gt;</code> (<a href="http://regex101.com/r/mX1sO0" rel="nofollow">http://regex101.com/r/mX1sO0</a>)</p>
  
  <p>But it matches only the first <code>|</code> withing the angle <code>&lt;&gt;</code>. And I am not sure how to replace it. Any directions?</p>