I'm using the following recipe to match regexp expressions. It's not
working, unfortunately, although it WILL catch non-regexp expressions. I
don't know what's wrong. Thanks.
No egrep which I'm familiar with supports Perl regexps! The \b, \s, and
\S are Perl-isms.
You should replace "egrep" with a Perl script equivalent if you wish to
use Perl regexps. Otherwise, use egrep regexps.
Alan
> :0BHc
> * $ ? egrep -s -f $PMDIR/match.reject.regexp
> /dev/null
>
> <snip the continuation>
>
> The regexps are like this:
>
> /\badd me\b/i
> /\bdelete me\b/i
> /\bremove\s+me\b/i
> /\bchange\b.*\baddress\b/
> /\bsubscribe\b/i
> /^sub\b/i
> /\bunsubscribe\b/i
> /^unsub\b/i
> /^\s*help\s*$/i
> /^\s*info\s*$/i
> /^\s*info\s+\S+\s*$/i
> /^\s*lists\s*$/i
> /^\s*which\s*$/i
> /^\s*which\s+\S+\s*$/i
> /^\s*index\s*$/i
> /^\s*index\s+\S+\s*$/i
> /^\s*who\s*$/i
> /^\s*who\s+\S+\s*$/i
> /^\s*get\s+\S+\s*$/i
> /^\s*get\s+\S+\s+\S+\s*$/i
> /^\s*approve\b/i
> /^\s*passwd\b/i
> /^\s*newinfo\b/i
> /^\s*config\b/i
> /^\s*newconfig\b/i
> /^\s*writeconfig\b/i
> /^\s*mkdigest\b/i