You are here: PSPad forum > English discussion forum > Pattern Replace
Posted by: Haunebu | Date: 2021-04-26 10:04 | IP: IP Logged
I need a small help Pattern Replace
forum.pspad.com
example\\.com/(diary/example/){0,1}20[01][0-9]([/-]\\d{2}){2}([/-]\\d+){0,1}
Replace with:
example\\.com/(diary/example/){0,1}20[01][0-9]([/-]\\d{2}){2}([/-]\\d+){0,1}#.html
I want to add extension to the link at the end, this type:
#.html
Edited 2 time(s). Last edit at 2021-04-26 10:06 by Haunebu.
Posted by: pspad | Date: 2021-04-26 10:33 | IP: IP Logged
Put whole regular expression into ()
Replace with $1#.html
Posted by: Haunebu | Date: 2021-04-26 15:16 | IP: IP Logged
Very good. Thanks!
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