[wellylug] Procmail recipie problem

Stephen Judd sljudd at paradise.net.nz
Wed Jun 18 07:49:45 NZST 2003


On Tue, 2003-06-17 at 22:42, Ewen McNeill wrote:
<snippage>

> >- poor font choices make it easy to accidentally mix up \w and \W, \s and \S.
> 
> And these special patterns pretty much only work in perl anyway.  Some 
> programs expose POSIX style special patterns (eg, sed, awk, on some
> platforms), such as [:digit:], and yet others do their own thing (and a
> few don't even bother at all).

Hmmm. In the last week I have used both Python and Tcl regexes, and they
definitely support these.

> The "?" flag as a suffix to mean "don't be greedy" is a perl special
> extension AFAIK;

Ditto.

>  where it's not available you have to write a better
> (read: more complicated) regex instead, to prevent the greedy match from
> working (eg, I often use [^>] when matching SGML/HTML/XML like tags,
> to prevent matching outside the tag boundary).

It's a kitty with its head cocked!

oops

stephen




More information about the wellylug mailing list