Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 25, 2005, 5:00 pm
rate this thread
Re: removing lines that start with certain characters
Well, I suppose formail ist a perfect program to do remove Headers from
mails, but if you like to learn about pattern-matching and regular
expression in perl, I recommend man perlre
A possible expression for your request is /^(From|Sent|To|Subject):/
The rest of the programm is obvious up to you. If you have troubles with
the rest, just post what you already tried and what problems you
At least I always support socialism if he really seems to try :)
- » FAQ 5.7 How can I manipulate fixed-record-length files?
- — Previous thread in » PERL Discussions