Page 1 of 2

help in regex

Posted: 06 May 2023, 20:42
by dreamer29
bunkr\.[^/\.]+/[^/\.]/[^/\.]+
is for https://bunkr.la/a/IciZ9OyW

is there a easier code for this above. the /a/ can be sometimes /v/

Re: help in regex

Posted: 07 May 2023, 13:09
by Maksym
You can replace the middle

/[^/\.]/

with

/[av]/

if you are absolutely sure that there will be nothing except for "a" and "v" there.

Try this:

bunkr\.[^/\.]+/[av]/[^/\.\?#]+

Re: help in regex

Posted: 07 May 2023, 13:09
by dreamer29
thanks

Re: help in regex

Posted: 07 May 2023, 13:11
by Maksym
You do know that there is already a template for bunkr.la albums, right?

bunkr.la-album downloader

Are there any problems with it?

Re: help in regex

Posted: 07 May 2023, 13:31
by dreamer29
i need it not for bunkr template but for celebforum.to

Re: help in regex

Posted: 07 May 2023, 13:35
by Maksym
Oh, I see

Re: help in regex

Posted: 07 May 2023, 13:41
by dreamer29
an another question:

Is there a possibility when a template changes that the change is automatically applied to an existing project.

Re: help in regex

Posted: 07 May 2023, 13:46
by Maksym
No, you have to create a new project from a modified template. That's why I always "experiment" on a project, and only when it works - I copy settings to a template.

Re: help in regex

Posted: 07 May 2023, 13:48
by dreamer29
ok but it would be a good feature for the future maybe it can be built into the program at some point

Re: help in regex

Posted: 07 May 2023, 13:57
by Maksym
You do not ALWAYS want the program to mess with existing project's properties automatically. That's why this feature is not in the program. Maybe a manual function would make sense. Like, select a menu item to apply settings from a selected template to all projects created with that template. But not automatically.