Single String Replacement
Here's how I did it with Notepad++ using the Ctrl
+H
option and then by replacing .com
with <nothing leaving it blank>
and the other options set as listed below in the screen shot. This will work with the Search Mode set to Regular Expression or as Normal Search too by the way.
Instructions
- Press
Ctrl
+H
in Notepad++
- Put
.com
in the Find what field
- Leave the Replace with field empty with nothing nor any white space
- Be sure the Wrap around option is checked
- Select either the Regular expression or the Normal option within the Search Mode section
- Press the
Replace All
option
Before
i.gr-assets.com
instacam.com
r4---sn-bg0e7n7r.googlevideo.com
After
i.gr-assets
instacam
r4---sn-bg0e7n7r.googlevideo
Multiple String Replacement
Here's how I did it with Notepad++ using the Ctrl
+H
option and then by replacing (.com|.net|.biz|.uk)
top level domains separated by pipes within the parenthesis just like that and replace those with <nothing leaving it blank>
and the other options set as listed below in the screen shot. This will only work with the Regular Expression option.
Instructions
- Press
Ctrl
+H
in Notepad++
- Put
(.com|.net|.biz|.uk)
in the Find what field
- Your top level domains will each be separated by a pipe symbol (
|
) within the parenthesis—this tells it to match all strings within the parenthesis separated by a pipe
- Leave the Replace with field empty with nothing nor any white space
- Be sure the Wrap around option is checked
- Select the Regular expression option within the Search Mode section
- Press the
Replace All
option
Before
i.gr-assets.com
instacam.com
r4---sn-bg0e7n7r.googlevideo.com
i.gr-assets.net
instacam.net
r4---sn-bg0e7n7r.googlevideo.net
i.gr-assets.biz
instacam.biz
r4---sn-bg0e7n7r.googlevideo.biz
i.gr-assets.uk
instacam.uk
r4---sn-bg0e7n7r.googlevideo.uk
After
i.gr-assets
instacam
r4---sn-bg0e7n7r.googlevideo
i.gr-assets
instacam
r4---sn-bg0e7n7r.googlevideo
i.gr-assets
instacam
r4---sn-bg0e7n7r.googlevideo
i.gr-assets
instacam
r4---sn-bg0e7n7r.googlevideo
.com
in the "Find What" field and have<nothing leave it blank>
in the "Replace With" field and set the Wrap Around check, the Regular Expression checked (normal mode would work too) and select "Replace All". See if that does it by testing. Here's an image of the options: i.imgur.com/RheE0jf.png