You are here: PSPad forum > English discussion forum > How to extract all links from plain text?
Goto Page: Previous1 2 3 4 5 Next
Posted by: pspad | Date: 2020-01-14 11:39 | IP: IP Logged
I think it isn't hard to add numbers into existing regular expression
Posted by: pspad | Date: 2020-01-14 11:42 | IP: IP Logged
(news|http|ftp|https):\/\/[\w\-_]+(\.[\w\n]+)+([\w\n\-\.,@?^=%&:/~\+#]*[\w\n\-\@?^=%&/~\+#])?
Posted by: maki | Date: 2020-01-15 01:44 | IP: IP Logged
Not work
[Window Title]
Info
[Content]
Occurrence of "(news|http|ftp|https):\/\/[\w\-_]+(\.[\w\n]+)+([\w\n\-\.,@?^=%&&:/~\+#]*[\w\n\-\@?^=%&&/~\+#])?" was found 0 times
[OK]
Edited 1 time(s). Last edit at 2020-01-15 01:44 by maki.
Posted by: pspad | Date: 2020-01-15 04:14 | IP: IP Logged
Works on your previous examples.
Without example where it doesn't work is another debate waste of time.
It's same as I would answer you it works without any other details
Posted by: maki | Date: 2020-01-19 03:16 | IP: IP Logged
I will argue because it doesn't work. This is a simple example, but will it work in any text and even if there is no protocol? It doesn't work because, for example, regex is invalid! All the errors detected are listed below, from left to right, as they appear in the pattern.
/ An unescaped delimiter must be escaped with a backslash (\)
/ An unescaped delimiter must be escaped with a backslash (\)
Edited 2 time(s). Last edit at 2020-01-19 03:20 by maki.
Posted by: pspad | Date: 2020-01-19 07:01 | IP: IP Logged
If yo uwant to extract links without protocol, you need to modify regular expression. So do it.
((news|http|ftp|https):\/\/){0,1}[\w\-_]+(\.[\w\n]+)+([\w\n\-\.,@?^=%&:/~\+#]*[\w\n\-\@?^=%&/~\+#])?
Edited 1 time(s). Last edit at 2020-01-19 07:04 by pspad.
Posted by: maki | Date: 2020-01-19 08:55 | IP: IP Logged
I do not see this option or it is after a different name. I am looking in the editor for a simple switch of showing addresses.
Encode and Decode percend encoding to Unicode UTF-8
Posted by: pspad | Date: 2020-01-19 09:18 | IP: IP Logged
Sorry, I don't understand what are you looking for
Posted by: maki | Date: 2020-01-19 11:00 | IP: IP Logged
Show chars in the name of the links instead of coding in PSPad.
Posted by: pspad | Date: 2020-01-19 11:13 | IP: IP Logged
To answer you, i need links, not pictures.
You can put it into TXT file and send to support mail address
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR