procmail
[Top] [All Lists]

Re: Having problems with regexp matching

1996-11-14 14:33:09
On Thu, 14 Nov 1996, Alan K. Stebbens wrote:

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.

Thanks. Nobody mentioned this the first time around when I posted the list
about a month and a half ago.

I went ahead and learned some egrep regexps and got it to work.

Thanks again!



 ------------------------------------------------------------------------- 
 | Brock Rozen | brozen(_at_)webdreams(_dot_)com | 
http://www.webdreams.com/~brozen | 
 ------------------------------------------------------------------------- 

<Prev in Thread] Current Thread [Next in Thread>