You are here: PSPad forum > English discussion forum > Pattern Replace

Pattern Replace

#1 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.

Options: Reply | Quote | Up ^


#2 Re: Pattern Replace

Posted by: pspad | Date: 2021-04-26 10:33 | IP: IP Logged

Put whole regular expression into ()
Replace with $1#.html

Options: Reply | Quote | Up ^


#3 Re: Pattern Replace

Posted by: Haunebu | Date: 2021-04-26 15:16 | IP: IP Logged

Very good. Thanks!

Options: Reply | Quote | Up ^






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