title: How to fetch a string between <> in java
body: <p>I have a URL link </p>
  
  <pre><code>Link=&lt;http://mysample.link.com/first/12/sample?page=1234-asdf&gt;;rel="next"
  </code></pre>
  
  <p>I want to fetch everything between &lt;> and get the result as <code>http://mysample.link.com/first/12/sample?page=1234-asdf</code></p>
  
  <p>Currently I am using String.substring() like 
  <code>finalString=sample.subString(sample.indexOf("&lt;"),sample.indexOf("&gt;"));</code></p>
  
  <p>but I don't think this is the best approach. Could someone please tell me how can I fetch the result string using regular expression. </p>