procmail
[Top] [All Lists]

Re: Modifying the body of emails

2007-07-08 15:59:39
On Jul 8, 2007, at 4:12 PM, LuKreme wrote:

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.

By my reading, BRE's do not support ?, or for that matter +, {, |, (, or ), making this not work either.

Jim

--
Ron Paul President 2008!
It is time for President Paul!
The only candidate who defends liberty and the
Constitution!
http://ronpaul2008.com

Visit Jim's Web Portal: http://homepage.mac.com/calion/

Attachment: PGP.sig
Description: This is a digitally signed message part

____________________________________________________________
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