How I can convert urls in a text file to clickable links??
R k last edited by R k
I have multiple text files having links in seperate lines.
I want to make all links clickable and save it with .html extension.
This is what i want to achieve and save as .html
Helped me create above html tags
But can Notepad++ do this same on my multiple files?
I have around 40-50 txt files with links.
astrosofista last edited by
I assume that the curly quotes in the example data you posted are actually straight quotes (*). If that is the case, then the following regex will convert any line that starts with
https://into a clickable link:
Search: (?-s)^https?://.+$ Replace: <a href="$0">$0</a>
Put the caret at the very beginning of the document, select just the
Regular Expressions modeand click the
Take care and have fun!
Note:When you post data, please highlight the examples and then press the
</>button above in order to prevent the website from mangling the data, as did happened in this case with double quotes.
guy038 last edited by guy038
Hello @r-k and All,
Very easily !
Open the Find in Files dialog (
Ctrl + Shift + F)
*.txtin the Filters: zone
Type in the
absolute pathto your
40-50text files in the Directory: zone
Regular expressionsearch mode
Click on the
Replace in Filesbutton and valid the confirmation dialog
Et voilà !
IMPORTANT : Before applying this S/R to your set of files, give it a try against ONE test file, only :
Open the Replace dialog (
Ctrl + H)
Click once on the
Replace Allbutton or several times on the
P.S. : In fact, @astrosofista just beat me ;-))
R k last edited by
@guy038 OP here! This is exactly what I was looking for. Thank You.