Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

URL ends .jpg but does not have "thumbs"

Add a New Topic Reply to Post
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 814

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 814

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:
7 + 3
   


About the InternetOfficer.com Forum

Most Users Ever Online: 65

Currently Online:
10 Guests

Forum Stats:

Groups: 2
Forums: 8
Topics: 373
Posts: 1846

Membership:

There are 193 Members
There have been 197 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 48
albert_newton – 30
cosminpana – 20
DTNMike – 16
x-plicit2009 – 14
deepakgupta – 14

Recent New Members: stewiedv, kre8web, xlancealotx, Robert25, geemist

Administrators: Jean-Luc (814 Posts)

Moderators: Jean-Luc (814 Posts)