On 8-Jul-2007, at 10:07, Jim Syler wrote:
On Jul 8, 2007, at 6:13 AM, Ruud H.G. van Tol wrote:
From `man procmailrc`:
[...] regular expressions are completely compati-
ble to the normal egrep(1) extended regular expressions.
Well, you just need to find a old `man 1 egrep` to make that true. :)
But we're talking about sed here, which only recognizes basic
regular expressions, annoying leaving me no way I can find to
specify "find one or two of the previous character."
the equivalent to .{1,2} is ..?
The trouble comes when you want, say, 9-11 characters (like say a SSN
with or without dashes)
\d{3}-?\d{2}-?\d{3}
becomes
[0-9][0-9][0-9]-?[0-9][0-9]-?[0-9][0-9][0-9][0-9]
which in my mind is a lot more unwieldy.
--
May you live in interesting times
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail