title: Need to extract filename from URL
body: <p>I am trying to extract a file name with some specific extension from a URL. For example, I have a URL like "<a href="https://abc.xyz.com/path/somefilename.xy" rel="noreferrer">https://abc.xyz.com/path/somefilename.xy</a>". I need to extract "somefilename.xy" from the above URL, and nothing else.</p>
  
  <p>basically I need to write that code in my java program</p>
  
  <p>I am not that good in regular expressions, so can somebody help me in that.</p>