Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

%extraX and double quote field

Reply to Post Add a New Topic
UserPost

9:34 am
December 18, 2009


jippy

Guest

Hi all,

Do you know if the %extraX can be a double quote field ?

IE :

"My custom value"

"Normal value"

Thanks a lot ^_^

10:06 am
December 18, 2009


Jean-Luc

Admin

posts 1042

Hi,

There may be no spaces within %extraX . My understanding is that "blahblah" would be a valid field, but "blah blah" would not be valid.

You could use sed  to automatically remove the quotes and replace the spaces within the field by another character, like this:

- "blahblah" => blahblah

- "blah blah" => blah+blah

sed  is a Linux command and it can be called within the LogFile  directive to automate the format translation when the AWStats update is performed.

Here are two (not tested) examples of sed  used in the LogFile  directive:

LogFile="sed -e 's/\\\[([0-9][0-9][0-9])\\\]/\\1/g' /path/log_file.log |"

LogFile="sed -e 's/, /\\t/g' /path/log_file.log |"

10:17 am
December 18, 2009


jippy

Guest

ok, thanks a lot for the information !

I wanted to be sure that there was no problem with my regex ^_^

Now I know why the space is not working :-)

Reply to Post

Reply to Topic:
%extraX and double quote field

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:
5 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online: Diggy
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 497
Posts: 2378

Membership:

There are 2048 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1042 Posts)

Moderators: Jean-Luc (1042 Posts)