Re: Escaping Quotes in Logs

Roberto Hoyle <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <[email protected]>
On Feb 26, 2008, at 12:19 PM, Aengus wrote:

> Roberto Hoyle <[email protected]> wrote:
>> I have a log entry of the form:
>>
>> "Entry"
>>
>> however, the Entry above may have escaped quotes (\") in it.
>>
>> Is there a way to have Analog differentiate between escaped quotes  
>> and
>> regular quotes in it's parsing?
>
> ?? Can you expand on your description the problem? I don't  
> understand what you're trying to do, and what you expect to get,  
> versus what you're actually getting.

A query string can have quotes in it, and the log file will contain  
the quotes with a preceding '\':

"http://ry2ue4ek7d.search.serialssolutions.com/?sid=HWW:HUMAB&genre=article&pid= 
<an>199728800301005</an>&aulast=Callahan&aufirst=John 
+F.&issn=0041-462X&title=Twentieth+Century+Literature&stitle=Twentieth 
+Century+Lit&atitle=F.+Scott+Fitzgerald's+evolving+American+dream:+the+ 
\"pursuit+of+happiness\"+in+Gatsby,+Tender+is+the+night,+and+The+last 
+tycoon&volume=42&spage=374&epage=395&date=1996&ssn=fall"

Note that "pursuit of happiness" was entered as a search term, and  
therefore gets escaped (\") and has the spaces replaced by '+".

Is there a way for Analog to deal with the entire line, instead of  
stopping at the first '"' character, if I try to analyze the query  
parameters?

r.
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.