[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix Regular Expressions

On Fri, Apr 12, 2002 at 06:37:15PM +0200, Bart-Jan Vrielink wrote:
> On Fri, 2002-04-12 at 16:42, Gene Grimm wrote:
> > I have simple question that I can't find documented. I need to add basic 
> > spam/virus filters to body_checks using regular expressions where the 
> > line begins with a tab character. Using "\t" or "\s" doesn't seem to 
> > work. Can anyone suggest the best way to handle this?
> Are you using regexp or pcre maps ??
> If you are using pcre style regular expressions then \t should work. 


\s and \t (and \d, \w, \b, and many others) are pcre (perl-compatible
regular expressions) which are an extension of standard regexps.

> If the map is a regexp style map, then you just use a tab instead of
> \t.

yep,  and use "[[:space:]]" instead of "\s"  - that matches spaces &
tabs, just like \s does.


craig sanders <cas@taz.net.au>

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch

To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: