Gallery help

Ask for help about FlashGot, no registration needed to post
Post Reply
RZ77
Posts: 2
Joined: Thu Jan 02, 2014 2:56 pm

Gallery help

Post by RZ77 »

Trying to build a simple gallery for the following example where the name has different chars at the end. I want to get all of the items.

example.nnn/picture100/picture100ab.jpg
example.nnn/picture100/picture100cd-1.jpg
example.nnn/picture100/picture100cd-2.jpg etc.

I can use the following but I don't know how to include both items with different chars at the end of the name.

example.nnn/picture100/picture[100-100][ab-cd]-[1-7;1].jpg

This does not work.

Is there any way to use a wildcard or a way to use a variable to get picture100ab and picture100cd?

I appreciate any help.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:26.0) Gecko/20100101 Firefox/26.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Gallery help

Post by Thrawn »

I'm not sure what site you're at, so I can't test properly, but how about this?

Code: Select all

example.nnn/picture100/picture100[a-z;1][a-z;1]-[1-7;1].jpg
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Gallery help

Post by therube »

Neat.
Never knew you could do that with alpha's.

Not sure, but thinking he only wants 'ab' & 'cd'? What you have will work, only it will attempt a lot of dead ends.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25a2
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Gallery help

Post by Thrawn »

Well, to just have 'ab' and 'cd', you'd have to have something like [ab-cd;54], I think, to make a single very big step from one to the other.

Or perhaps [a-c;2][b-d;2], which will try:
ab
cb
ad
cd
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0
RZ77
Posts: 2
Joined: Thu Jan 02, 2014 2:56 pm

Re: Gallery help

Post by RZ77 »

Thank You Thrawn and therube.

I really appreciate your help.

This works and gets all items successfully except picture100cd.jpg

example.nnn/picture100/picture100ab-[1-7;1].jpg

It is really like two queries one with the 1 through 7 and one without.

example.nnn/picture100/picture100ab.jpg
example.nnn/picture100/picture100cd-1.jpg

It just may not be able to it. I'll keep trying.

Thanks
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:26.0) Gecko/20100101 Firefox/26.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Gallery help

Post by Thrawn »

Yeah, you'll probably need a second query for that, I'm afraid, because it isn't really the same structure as the numbered ones.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0
Post Reply