title: Want to remove everything after nth "/" from hyperlink in Notepad++ or Excel
body: <p>I need some help: looking for a way to remove everything after the nth occurrence (most likely 4th or 5th) of "/" in a hyperlink. For instance, if I have </p>
  
  <pre><code>https://www.forbes.com/forbes/welcome/?toURL=https://forbes.com/&amp;refURL=&amp;referrer=
  </code></pre>
  
  <p>my desired output is:</p>
  
  <pre><code>https://www.forbes.com/forbes/welcome/
  </code></pre>
  
  <p>Additionally, if a link only has &lt;4 "/", I'd like to keep everything. Thanks in advance!!</p>