You are here: PSPad forum > English discussion forum > Re: Convert to repeating names in links

Re: Convert to repeating names in links

#1 Convert to repeating names in links

Posted by: maki | Date: 2019-06-22 09:11 | IP: IP Logged

website.eu

change to:
website.eu

? -> Convert to repeating names in links, only ID is unchangeable

Options: Reply | Quote | Up ^


#2 Re: Convert to repeating names in links

Posted by: pspad | Date: 2019-06-22 09:44 | IP: IP Logged

Search: \/(\d+)\-
Replace: website.eu

Cause forum engine makes a link, copy replace link as result

Edited 2 time(s). Last edit at 2019-06-22 09:45 by pspad.

Options: Reply | Quote | Up ^


#3 Re: Convert to repeating names in links

Posted by: maki | Date: 2019-06-22 10:19 | IP: IP Logged

Incorrect regular expression because invalid output:

website.eu

Options: Reply | Quote | Up ^


#4 Re: Convert to repeating names in links

Posted by: pspad | Date: 2019-06-22 12:44 | IP: IP Logged

I prepare result for your example.
You didn't provide correct example as usually. You are not able to modify provided example for your purposes. Your typical answer is that regular expression result is different from your expectation.

Sorry, but you need to find another person who will waste time with you.

Options: Reply | Quote | Up ^


#5 Re: Convert to repeating names in links

Posted by: maki | Date: 2019-06-22 13:21 | IP: IP Logged

wherever I put a question mark should be

? -> [a-z0-9-]

https:\/\/website\.eu/[a-z-]/[0-9]\-[a-z0-9-]/.html

Edited 1 time(s). Last edit at 2019-06-22 13:24 by maki.

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