By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

rfc822 regexp

P: n/a
Hi.

I have a problem with writing regular expression :-( There is message's header:

From: blah-blah
To: blah-blah <blah@blah>, blah1 <blah1@blah>,\n\t blah2 <blah2@blah>
Cc: blah3@blah
Subject: rfc822 regexp

and so on. Also, I have some string, which exactly matches part of field
"To:" for example 'blah1 <blah1@blah>'. I need to remove this substring
from field, noting that field can be multiline.

I've spent lots of time and didn't succeed. All I have, doesn't give a
correct result for all combination of commas, spaces, tabs and newlines in
the field.

Am I inventing wheel? Any ideas?

Thank you.

--
Man is incomplete until he is married. Then he is finished.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Vladimir Litovka <do**@kiev.sovam.com> wrote in message news:<bv**********@news.kiev.sovam.com>...
Hi.

I have a problem with writing regular expression :-( There is message's header:

From: blah-blah
To: blah-blah <blah@blah>, blah1 <blah1@blah>,\n\t blah2 <blah2@blah>
Cc: blah3@blah
Subject: rfc822 regexp

and so on. Also, I have some string, which exactly matches part of field
"To:" for example 'blah1 <blah1@blah>'. I need to remove this substring
from field, noting that field can be multiline.

I've spent lots of time and didn't succeed. All I have, doesn't give a
correct result for all combination of commas, spaces, tabs and newlines in
the field.

Am I inventing wheel?
Yes.
Any ideas?
Get a wheel off the shelf from CPAN.
Thank you.


This newsgroup does not exist (see FAQ). Please do not start threads here.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.