You are here: PSPad forum > English discussion forum > Re: Talk about regular expressions

Re: Talk about regular expressions

Goto Page: Previous1 2 3 4 Next

#21 Re: Talk about regular expressions

Posted by: pspad | Date: 2020-02-05 19:44 | IP: IP Logged

Line: anything URL anything
Result: URL#.test

search .*?(URLREGULAREXPRESSION).*
replace: $1#.test

Options: Reply | Quote | Up ^


#22 Re: Talk about regular expressions

Posted by: maki | Date: 2020-02-06 12:52 | IP: IP Logged

@PSPad - Perfectly!

Options: Reply | Quote | Up ^


#23 Re: Talk about regular expressions

Posted by: maki | Date: 2020-02-10 19:49 | IP: IP Logged

How to extract the correct final link to the full-size photo.
I have a list of links but I need regular expressions.

h_tp................\&img_url=Final Link

Source:
yandex.com

Final Link:
https%3A%2F%2Fi.ytimg.com%2Fvi%2FL6E8xd8Vj9I%2Fhqdefault.jpg&cbir_id=2297037%2FMMqZUFja-AR8y98PYvJjjg&rpt=imagelike

Source:
yandex.com

Final Link:
https%3A%2F%2Foptkartina.ru%2Fimage%2Fcache%2Fdata%2F50x100%2FK687-max-550.jpg

Edited 1 time(s). Last edit at 2020-02-10 19:50 by maki.

Options: Reply | Quote | Up ^


#24 Re: Talk about regular expressions

Posted by: seomoto | Date: 2020-02-15 08:59 | IP: IP Logged

hahaha this is ???

Options: Reply | Quote | Up ^


#25 Re: Talk about regular expressions

Posted by: pspad | Date: 2020-02-15 09:19 | IP: IP Logged

It's easy. He needs to replace entities with chars and use regular expressions for url.
But he needs to think first

Edited 1 time(s). Last edit at 2020-02-15 14:40 by pspad.

Options: Reply | Quote | Up ^


#26 Re: Talk about regular expressions

Posted by: maki | Date: 2020-02-15 14:36 | IP: IP Logged

Make it convenient for to edit different delimited formats, especially comma-separated values (CSV).
Find: url=
Replace with: ,
Cell Selection Mode > Comma separated

But I want write regex.

Edited 2 time(s). Last edit at 2020-02-15 14:38 by maki.

Options: Reply | Quote | Up ^


#27 Re: Talk about regular expressions

Posted by: pspad | Date: 2020-02-15 14:39 | IP: IP Logged

Nobody prevent you to write regular expression for it.

Options: Reply | Quote | Up ^


#28 Re: Talk about regular expressions

Posted by: maki | Date: 2020-02-15 15:03 | IP: IP Logged

Writing such a regular expression is very complicated for percentage-encoding the url.
I haven't even seen any examples regular expression on the internet.

Edited 1 time(s). Last edit at 2020-02-15 15:04 by maki.

Options: Reply | Quote | Up ^


#29 Re: Talk about regular expressions

Posted by: feef | Date: 2020-02-16 08:12 | IP: IP Logged

maki, why don't you use such tools as regexr.com or regex101.com for your experiments?

Options: Reply | Quote | Up ^


#30 Re: Talk about regular expressions

Posted by: maki | Date: 2020-02-16 09:05 | IP: IP Logged

feef:
maki, why don't you use such tools as regexr.com or regex101.com for your experiments?

Because I don't use JavaScript & PHP / PCRE RegEx engines.

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 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