I have a list of URLs stored in a TXT file (I am using Windows 7).
The format of the URLs is as follows:
somesite1.com somesite2.com somesite3.com sub1.somesite3.com sub2.somesite3.com sub3.somesite3.com sub1.somesite3.net sub1.somesite1.org
Notepad ++ has the ability to use βfind-replace with regular expressions,β and I'm sure gvim allows the user of regular expressions (although I'm not quite sure how to use them in Gvim).
In any case, I do not know what to put in the search and replace field so that it can view the contents of the file and leave me only with root domains. If done correctly, this will turn the above list of examples into the following:
somesite1.com somesite2.com somesite3.com somesite3.com somesite3.com somesite3.com somesite3.net somesite1.org
Can someone help me?
vim regex notepad ++
Learning Jun 22 2018-11-11T00: 00Z
source share