[tor-bugs] #2733 [Vidalia]: Option to filter message log output by search term

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Mar 21 20:06:30 UTC 2012


#2733: Option to filter message log output by search term
-------------------------+--------------------------------------------------
 Reporter:  chiiph       |          Owner:  sebb        
     Type:  enhancement  |         Status:  needs_review
 Priority:  minor        |      Milestone:              
Component:  Vidalia      |        Version:              
 Keywords:               |         Parent:              
   Points:               |   Actualpoints:              
-------------------------+--------------------------------------------------

Comment(by sebb):

 that was the first thing that I thought as well, but then I've started to
 prepare the regular expressions, and there was a problem - if you can
 think of reg exp that will capture everything except given set of words, I
 can change the implementation.
 Give me a simple, maintainable regular expression for this one:
 NOT x AND NOT y AND NOT z
 the one I developed for NOT(x) looked something like:
 ^(?:(?!x).)*$
 (maybe slightly different, because I'm making this up right now, I lost
 the implementation file)
 Combine this with AND and OR operators and you will get a mess.
 I think parsing to a binary tree is much more readable (and easier to
 modify) than some complicated regular expressions.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2733#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list