help in regex

dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

help in regex

Post by dreamer29 » 06 May 2023, 20:42

bunkr\.[^/\.]+/[^/\.]/[^/\.]+
is for https://bunkr.la/a/IciZ9OyW

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

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym » 07 May 2023, 13:09

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]/[^/\.\?#]+

dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 » 07 May 2023, 13:09

thanks

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym » 07 May 2023, 13:11

You do know that there is already a template for bunkr.la albums, right?

bunkr.la-album downloader

Are there any problems with it?

dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 » 07 May 2023, 13:31

i need it not for bunkr template but for celebforum.to

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym » 07 May 2023, 13:35

Oh, I see

dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 » 07 May 2023, 13:41

an another question:

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

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym » 07 May 2023, 13:46

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.

dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 » 07 May 2023, 13:48

ok but it would be a good feature for the future maybe it can be built into the program at some point

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym » 07 May 2023, 13:57

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.

Post Reply