Page 1 of 1

Reddit template - Regular Expressions

Posted: 21 Mar 2021, 10:59
by Mad4it
Hi

I am a "newbi" testing out this cool program.

But i am having problems wrapping my mind around the Regular Expressions and naming of files.

My challenge: I want to use the reddit user template adding to it some expressions that give the following result.

by adding for example 100 URL's with reddit user links like https://www.reddit.com/user/UserName/

when running i would like to get one of two result (or even better both)

1. Pictures downloaded should be saved with a prefix of "UserName-" all in one folder

2. Pictures downloaded should be saved with a prefix of "UserName-" and saved in separate folders named "UserName-"


Any help, pointers or tutorials would be very much appreciated


"Thor the Viking"

Re: Reddit template - Regular Expressions

Posted: 22 Mar 2021, 14:10
by Maxim
1. Pictures downloaded should be saved with a prefix of "UserName-" all in one folder
You can't do that right now. Sorry. Only fixed text prefixes are available.
2. Pictures downloaded should be saved with a prefix of "UserName-" and saved in separate folders named "UserName-"
This one is easy. In the project properties select [Save -> Sub-folders] section, then open the [Expert] tab and check [Use target file parent URL Regular Expression] box and use the following expression:

RE: reddit\.com/user/([^/\?#]+)
Result: [#1]