procmail
[Top] [All Lists]

Re: Adding dashes to phone number in subject

2003-06-27 08:47:01
On Thursday, Jun 26, 2003, at 19:04 Canada/Mountain, G.M. Wayne wrote:
SO... What is my problem? Well, I would like to add dashes in the phone number in the subject field to make it more readable, and I cannot figure
out how to do it with either Procmail or formail or sed.

something like:

 sed s/(...)(...)(....)/\(\1\) \2-\3/

should transform

1234567890 to (123) 456-7890


?

(although, to be fair, I don't remember if that \1
--
"Here comes sunrise. Yeah, here's your sunrise. I used to hide from the sun, tried to live my whole life underground, why'd you have to rise and ruin all my fun? Just turn over; close the curtains on the day."


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail