Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Summary-Talk] Regular expressions in "Ads" list



On 4/5/04 4:35 PM Jason Heinrich (jheinrich@pcci.edu) wrote:

>Is there a way to use regular expressions in the "Requests to count as 
>Ads" list (or any other filter)?  Specifically, I would like to count any 
>hit with its first directory being completely numeric (i.e. "/329/" or 
>"/2/") as an Ad.  I searched the documentation and the list archives, but 
>all I saw had to do with searching.

Summary only supports regular expressions for searching and aliases. 
Regular expressions are not supported for filters.

You can get the effect you want using aliases, but with some side 
effects. If you make an alias that renames all requests that have their 
first directory completely numeric, adding some special string to the 
front of the request, ie transform "/329/" into 
"/numeric-directory/329/", then you can define "Ads" to be anything 
starting with "/numeric-directory/". Of course, that extra directory name 
will show up everywhere, which isn't exactly ideal, but might be 
tolerable.

Good Luck
Jason

-----------------
Jason@Summary.Net
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
  -- Peter van der Linden, Expert C Programming, Deep C Secrets
-------------
Go to <http://summary.net/list.html> to update subscription info.