You are here: PSPad forum > English discussion forum > How to extract all links from plain text?

How to extract all links from plain text?

Goto Page: Previous1 2 3 4 5 Next

#21 Re: How to extract all links from plain text?

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

Options: Reply | Quote | Up ^


#22 Re: How to extract all links from plain text?

Posted by: pspad | Date: 2020-01-14 11:42 | IP: IP Logged

(news|http|ftp|https):\/\/[\w\-_]+(\.[\w\n]+)+([\w\n\-\.,@?^=%&:/~\+#]*[\w\n\-\@?^=%&/~\+#])?

Options: Reply | Quote | Up ^


#23 Re: How to extract all links from plain text?

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.

Options: Reply | Quote | Up ^


#24 Re: How to extract all links from plain text?

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

Options: Reply | Quote | Up ^


#25 Re: How to extract all links from plain text?

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 (\)

image

Edited 2 time(s). Last edit at 2020-01-19 03:20 by maki.

Options: Reply | Quote | Up ^


#26 Re: How to extract all links from plain text?

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.

Options: Reply | Quote | Up ^


#27 Re: How to extract all links from plain text?

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

Options: Reply | Quote | Up ^


#28 Re: How to extract all links from plain text?

Posted by: pspad | Date: 2020-01-19 09:18 | IP: IP Logged

Sorry, I don't understand what are you looking for

Options: Reply | Quote | Up ^


#29 Re: How to extract all links from plain text?

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.

image

Options: Reply | Quote | Up ^


#30 Re: How to extract all links from plain text?

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

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 5 Next





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