[analog-help] Escaping Quotes in Logs

Roberto Hoyle roberto.j.hoyle at Dartmouth.EDU
Tue Feb 26 11:32:06 PST 2008


On Feb 26, 2008, at 12:19 PM, Aengus wrote:

> Roberto Hoyle <roberto.j.hoyle at dartmouth.edu> 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.


More information about the analog-help mailing list