title: Trim URL to Root
body: <p>How can this be done in Delphi? For example..</p>
  
  <p>URL = <a href="https://mail.google.com/mail/u/0/?tab=wm#inbox" rel="noreferrer">https://mail.google.com/mail/u/0/?tab=wm#inbox</a></p>
  
  <p>Trimed URL = <a href="https://mail.google.com/" rel="noreferrer">https://mail.google.com/</a></p>
  
  <p>Thanks</p>