Great Circle Associates Majordomo-Workers
(September 1998)
 

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

Subject: Re: Documentation Update: help regexp
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Thu, 17 Sep 1998 08:37:09 -0500
To: "William R. Dickson -- System Administration" <wdickson @ nwnexus . net>, majordomo-workers @ GreatCircle . COM
Cc: tibbs @ hpc . uh . edu
Comments: ( Received on motgate.mot.com from client mothost.mot.com, sender dwolfe@risc.sps.mot.com )
In-reply-to: <v03102805b225ba033f3e@[206.63.47.20]>; from William R. Dickson -- System Administration on Wed, Sep 16, 1998 at 11:55:13AM -0700
References: <v03102805b225ba033f3e@[206.63.47.20]>

Good work. Some comments...

[ William R. Dickson -- System Administration writes: ]

> Regular Expressions
> ===================
> 
> For some of the configuration options, a rudimentary knowledge of perl
> style regular expressions will help you run Majordomo through its

Here (and throughout) I believe the reference is to the language Perl
and not the specific executable. The convention is Perl (the language)
and perl (an executable implementing Perl). With appropriate hyphenation
of the compound adjective, this particular instance should be spelled
"... Perl-style regular expressions ...".

> The character / is used to mark the beginning and end of a regular
> expression.  Letters and numbers stand for themselves.  Many of the
> other characters are symbolic.  Some commonly used ones are:
> 
>   \@    the `@' found in nearly all addresses; it must be preceeded by a
>         backslash in later versions of perl to avoid errors

Since Mj2 requires Perl 5, the latest versions of Perl disambiguate the
usage of @ in strings somewhat, and \@ works for all versions of Perl, I
think it'd be best to simply drop the "later versions" qualifier. I.e.
"... it must be preceeded by a backslash to avoid errors in Perl."

> Example 2
> ---------
> 
>      /rouilj\@.*cs\.umb\.edu/
> 
> The `@' has special meaning to later versions of perl and must be prefixed
> with a backslash to avoid errors.  The string ".*" means "any character,

Again, drop the qualifier and say "The `@' has special meaning in Perl
and must be prefixed...".

> Normally all matches are case sensitive; you can make any match case
> insensitive by appending an `i' to the end of the expression.
> 
> 
> Example 6
> ---------

I think it flows better to put the example heading before the text
introducing it:

Example 6
---------

Normally all matches are case sensitive; you can make any match case
insensitive by appending an `i' to the end of the expression.

     /aol\.com/i
[...]

-- 
 Dave Wolfe


Follow-Ups:
References:
Indexed By Date Previous: Re: Documentation Update: notes
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: Autoresponder loop
From: John R Levine <johnl@iecc.com>
Indexed By Thread Previous: Documentation Update: help regexp
From: "William R. Dickson -- System Administration" <wdickson@nwnexus.net>
Next: Re: Documentation Update: help regexp
From: "William R. Dickson -- System Administration" <wdickson@nwnexus.net>

Google
 
Search Internet Search www.greatcircle.com