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

Trying to truncate the User Agent output

Reply to Post Add a New Topic
UserPost

2:20 pm
March 25, 2009


jeffmark

Broomfield, CO

New Member

posts 2

Hi,

I'm trying to truncate the following output to make the User Agent table simpler. I have to find anything that might work. Would you be able to provide some input?

I want to display and count up to the first /.

SunUC_smpatch/1.0.10 Solaris 10 8/07 s10s_u4wos_12b SPARC Java/1.5.0_15

SunUCP/1.0.9 Solaris 10 6/06 s10s_u2wos_09a SPARC Java/1.6.0_11

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7

SunUC_UM/1.0.10 Solaris 10 10/08 s10s_u6wos_07b SPARC Java/1.5.0_16

etc…

Here are the entries for my Extras Section…

ExtraSectionName1="User Agents"
ExtraSectionCodeFilter1="403 302"
ExtraSectionCondition1="URL"
ExtraSectionFirstColumnTitle1="User Agent"
ExtraSectionFirstColumnValues1="UA,(.*)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=HL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=1000
MinHitExtra1=1

3:20 pm
March 25, 2009


Jean-Luc

Admin

posts 1125

Try :

ExtraSectionFirstColumnValues1="UA,^([^\\/]*)"

It will stop at the first /.

I did not check the other lines of your extra section.

3:55 pm
March 25, 2009


jeffmark

Broomfield, CO

New Member

posts 2

That did it, thanks so much.

Reply to Post

Reply to Topic:
Trying to truncate the User Agent output

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:
12 + 4
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
9 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)