Great Circle Associates Majordomo-Users
(June 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: setting default regexp_array in 1.90
From: "John P. Rouillard" <rouilj @ cs . umb . edu>
Date: Wed, 08 Jun 1994 00:50:32 -0400
To: "Mark Frost" <mfrost @ ncd . com>
Cc: majordomo-users @ greatcircle . com
In-reply-to: Your message of "Tue, 07 Jun 1994 17:12:41 PDT." <9406071712.ZM24893@bryant.ncd.com>


In message <9406071712.ZM24893@bryant.ncd.com>, "Mark Frost" writes:
>I'm trying to make a default for the "advertise" variable in 1.90.
>I seem to have no problem entering in a single value as in
>
>'advertise',            '/ncd.com$/', # if regexp matches address show list
>
>
>However, I want to add more than one regexp there.  This of course, works
>fine if I add it to the config file by hand (or via admin commands rather),
>but I want to set things up so that admins here can start with a reasonable
>set of defaults).
> 
>I've tried
>
>'advertise',            '/ncd.com$/ /ncd.co.uk$/', 
>
>and
>
>'advertise',            '/ncd.com$/
>/ncd.co.uk$/', # if regexp matches address show list
>
>but whenever I list more than one it always comes up empty.
>
>What am I doing wrong?

Try:
	"/regexp1/\001/regexp2/"

The value is a regexp array, and you might need to put it in string
array form. Then again its late, and I may be entirely wrong.

				-- John
John Rouillard

Senior Systems Consultant (SERL Project) University of Massachusetts at Boston
rouilj@cs.umb.edu (preferred)            Boston, MA, (617) 287-6480
==============================================================================
My employers don't acknowledge my existence much less my opinions.


References:
Indexed By Date Previous: Re: resend problems continue
From: "Michael J. Corrigan" <corrigan@ucsd.edu>
Next: Security hole?
From: Dave Sill <de5@de5.CTD.ORNL.GOV>
Indexed By Thread Previous: setting default regexp_array in 1.90
From: "Mark Frost" <mfrost@ncd.com>
Next: Re: setting default regexp_array in 1.90
From: Stephen P Potter <spp@cis.ufl.edu>

Google
 
Search Internet Search www.greatcircle.com