Regex question to create template

Post Reply
neroneronerop
Posts: 13
Joined: 21 Jun 2019, 20:37

Regex question to create template

Post by neroneronerop » 21 Jun 2019, 20:51

Hi all,

first off all sorry if there is a topic about this but if i haven´t found it :/

i am trying to create a template for www.blondepornjpg.com .... thats not the problem... the problem is i also try to create (sort) the folders but the foldernames should be from the previous page....

Example:
(URL with "foldername" i need) http://www.blondepornjpg.com/blonde-showing-off-3.shtml
linked to
(Piclink without "foldername" ) http://fuckjpg.com/201906/18/1619882707.jpg

Is it possible to extract "blonde-showing-off-3" from there?

Big thx in advance for your help and sorry about the bad english

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

Re: Regex question to create template

Post by Maksym » 22 Jun 2019, 12:09

Yes, of course it is possible. Here is the RE:

Expression: blondepornjpg\.com/([^/\?#]+)\.shtml
Result: [#1]

Use it in the [ Save -> Sub-folders ] section of the project properties, "Expert" tab, "Use target file parent URL Regular Expression to create a sub-folder" option.

neroneronerop
Posts: 13
Joined: 21 Jun 2019, 20:37

Re: Regex question to create template

Post by neroneronerop » 22 Jun 2019, 17:25

big thx! this works ... i have no idea what i all tryed and finally it works!

big thank you !

Post Reply