Name sub-folder

Maxim
Site Admin
Posts: 882
Joined: 02 Mar 2009, 17:02

Re: Name sub-folder

Post by Maxim » 20 Oct 2017, 13:53

Well, here is the Regular Expression for this kind of pages:

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

kaosnews
Posts: 10
Joined: 21 Sep 2017, 15:38

Re: Name sub-folder

Post by kaosnews » 23 Oct 2017, 00:18

Yes much better! Now the images are saved in directories named by the name of the threads.

kaosnews
Posts: 10
Joined: 21 Sep 2017, 15:38

Re: Name sub-folder

Post by kaosnews » 23 Oct 2017, 09:29

@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?)

Maxim
Site Admin
Posts: 882
Joined: 02 Mar 2009, 17:02

Re: Name sub-folder

Post by Maxim » 23 Oct 2017, 13:55

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 "-".

Post Reply