help in regex

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

help in regex

Post by dreamer29 »

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: 2084
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post 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]/[^/\.\?#]+
dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 »

thanks
Maksym
Site Admin
Posts: 2084
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post 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?
dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 »

i need it not for bunkr template but for celebforum.to
Maksym
Site Admin
Posts: 2084
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post by Maksym »

Oh, I see
dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 »

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: 2084
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post 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.
dreamer29
Posts: 75
Joined: 22 Mar 2023, 00:53

Re: help in regex

Post by dreamer29 »

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: 2084
Joined: 02 Mar 2009, 17:02

Re: help in regex

Post 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.
Post Reply