You are here: PSPad forum > English discussion forum > Talk about regular expressions
Goto Page: Previous1 2 3 4 Next
Posted by: pspad | Date: 2020-02-05 19:44 | IP: IP Logged
Line: anything URL anything
Result: URL#.test
search .*?(URLREGULAREXPRESSION).*
replace: $1#.test
Posted by: maki | Date: 2020-02-06 12:52 | IP: IP Logged
@PSPad - Perfectly!
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.
Posted by: seomoto | Date: 2020-02-15 08:59 | IP: IP Logged
hahaha this is ???
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.
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.
Posted by: pspad | Date: 2020-02-15 14:39 | IP: IP Logged
Nobody prevent you to write regular expression for it.
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.
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?
Posted by: maki | Date: 2020-02-16 09:05 | IP: IP Logged
feef:
Because I don't use JavaScript & PHP / PCRE RegEx engines.
Editor PSPad - freeware editor, © 2001 - 2025 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR