Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

URL ends .jpg but does not have "thumbs"

Reply to Post Add a New Topic
UserPost

9:48 pm
June 27, 2009


mastsato

Member

posts 3

I want an extra section that tracks all jpg files but not ones witha thumbs in the path.  Here is an example of what I don't wnat to count.

67.164.195.23 – - [27/Jun/2009:18:55:14
 -0400] “GET /pix/Parade09/thumbs/Memor
ial%20Day%20Parade%20-%20090525-092250.
jpg HTTP/1.1″ 200 12210 “http://rrlane.
homeip.net/pix/Parade09/index.html” “Mo
zilla/4.0 (compatible; MSIE 8.0; Window
s NT 6.0; Trident/4.0; GTB6; SLCC1; .NE
T CLR 2.0.50727; Media Center PC 5.0; T
ablet PC 2.0; .NET CLR 3.5.30729; .NET
CLR 3.0.30618)”

Here is waht I have so far for the extra section.

ExtraSectionCondition2=”URL,\\.jpg”

I'm lost with regex stuff so question is what do I need to accomplish what i'm after.

Thanks a million.

12:47 am
June 28, 2009


Jean-Luc

Admin

posts 1125

Hi,

Try this one :

ExtraSectionCondition2="URL,^(?!.*\\/thumbs\\/)\\.jpg$"

It selects URL's not including /thumbs/  and ending with .jpg .

7:11 am
June 28, 2009


mastsato

Member

posts 3

That appears to exclude everything. Checking the log file I do have entries since the config change that do not have thumbs but end in jpg.

9:39 am
June 28, 2009


Jean-Luc

Admin

posts 1125

This one is better:

ExtraSectionCondition2="URL,^(?!.*\\/thumbs\\/).*\\.jpg$"

12:50 pm
June 28, 2009


mastsato

Member

posts 3

THANK YOU!

That does it. Now I'm going to start reading why it works.

S

Reply to Post

Reply to Topic:
URL ends .jpg but does not have "thumbs"

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)