Page 2 of 2

Re: Name sub-folder

Posted: 20 Oct 2017, 13:53
by Maksym
Well, here is the Regular Expression for this kind of pages:

boards\.4chan\.org/[^/]+/thread/\d+

Re: Name sub-folder

Posted: 23 Oct 2017, 00:18
by kaosnews
Yes much better! Now the images are saved in directories named by the name of the threads.

Re: Name sub-folder

Posted: 23 Oct 2017, 09:29
by kaosnews
@Maxim is it possible to tackle the 'problem' with the "/" symbol in the title? So if the title is this:

Title site/with more text/and more

You get:
- Title site
-- with more text
---- and more

I understand why this is :) but it would be nice if you can replace internally in the program that / is renamed a space (I can understand that sometimes this can be handy, so maybe optional?)

Re: Name sub-folder

Posted: 23 Oct 2017, 13:55
by Maksym
You just need more complex Regular Expression. Like this:

Title site/with more text/and more

Expression: ([^/+])/([^/+])/([^/]+)
Result: [#1]-[#2]-[#3]

Thus you'll replace "/" with "-". You can use space or any other character instead of "-".

Re: Name sub-folder

Posted: 29 Mar 2018, 18:16
by Trin
Can someone please explain to me how to use the title field in the header for naming the sub folder? So use as the first poster asked for example

<title>Forest Adventure</title>

To name the sub-folder "Forest Adventure"

Do I use the option in "Save - Sub-folders - Advanced" to achieve this? And if so what do I put in for the regular expression?

I seem to be pretty slow at this so an example would be nice.

Thank you in advance for any help.

Re: Name sub-folder

Posted: 30 Mar 2018, 13:53
by Maksym
It's not that hard in most cases. You basically need to enter here common part of URLs which Titles will be used to create sub-folders. Examples:

1. All pages with images are in the same sub-folder on server:

example.com/folder_name/some-page.html
example.com/folder_name/another.html
...
example.com/folder_name/third.html

The common part of all of the above URLs is folder_name and that's what you have to enter into the field. Regular Expression can have no special characters at all and in this case URLs matched directly symbol by symbol, just like in this example.

2. Common part in URL parameters:

example.com?something=anything
example.com?something=nothing
example.com?something=againsomething

Here you can use something= to match all necessary URLs. Extreme Picture Finder will take Titles of matched URLs to create sub-folders.

If you give me your actual URLs - I'll help you create the Regular Expression you need and will try to explain it.