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
yep, and use "[[:space:]]" instead of "\s" - that matches spaces &
tabs, just like \s does.
craig sanders <firstname.lastname@example.org>
Fabricati Diem, PVNC.
-- motto of the Ankh-Morpork City Watch
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org