Reddit template - Regular Expressions

Post Reply
Mad4it
Posts: 1
Joined: 21 Mar 2021, 10:34

Reddit template - Regular Expressions

Post by Mad4it » 21 Mar 2021, 10:59

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"

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

Re: Reddit template - Regular Expressions

Post by Maksym » 22 Mar 2021, 14:10

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]

Post Reply