On Jun 8, 6:24, Stephen P Potter wrote:
> Subject: Re: setting default regexp_array in 1.90
> Strange sunspot activity caused "John P. Rouillard" <rouilj@cs.umb.edu> to writ
> e:
> | In message <9406071712.ZM24893@bryant.ncd.com>, "Mark Frost" writes:
> | >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).
> | 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.
> |
>
> I hope it's late and your are wrong.... ;)
> Shouldn't he try using:
>
> /regexp1|regexp2/; # you might want to escape the periods (\.)
>
> Steve
>-- End of excerpt from Stephen P Potter
Actually, I did try this. I thought I recalled reading somewhere in
the perl book that putting "|" inside of a regular expression is rather
inefficient. (Although for the life of me I can't seem to find this
mentioned in the perl book when I look for it now...)
-mark frost
References:
|
|