NotePad: Remove everything after website domain

1157115 pts.
Tags:
Notepad
For NotePad++, can I remove everything after a website's domain. For example:
www.domain.com/aboutus
It should be:
www.domain.com/
How can I do that? Thank you!
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
Open the search/replace dialog (CTRL+F then the replace tab) 
Tick “Regular Expression” down the bottom 
Use .* as the wildcard 
For example, to remove all instances of .COM/jfgf (basically the extra, which is why you want a wildcard to get rid of them).
In the replace dialog:
Find in what: .com/.*
Replace with: .com/

concept from
https://organicweb.com.au/17226/general-technology/notepad-wildcard/

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: