How to copy all links from a file in Notepad++
- Open the file from which you want to extract links through the File > Open menu or by dragging the file into the Notepad++ window.
- Open the search panel by pressing Ctrl + F.
- Go to the Find tab.
- In the Find field, enter a regular expression to search for URLs. For example:
https?://[^\s]+
Copying the found links
- A Find result window will appear at the bottom of Notepad++ with a list of all found links.
- Right-click in this window and select Select All.
- Press Ctrl + C to copy the selected links.
Pasting links into a new file
- Create a new file in Notepad++ through the File > New menu.
- Press Ctrl + V to paste the copied links.
- Save the new file through the File > Save As menu.
If you have unnecessary text before the links, such as - Line 10, Line 11, Line 12, use the regular expression:
^\s*Line\s+\d+: \s*
Leave the Replace with field empty and click the replace button.
Now you have all the links from the original file in the new file.