knsridhar has asked for the wisdom of the Perl Monks concerning the following question:
I have written a script which parses mbox and updates into the database. When i get a mail with 8859 character set or quoted printable format, i parse it by
Now the problem is while parsing mails whose body contains hyperlinks with key/value pair, like$message_body =~ s/=([ 0-9A-Fa-f ]{2})/chr(hex($1))/ge; $message_body =~ s/=\n//g; $message_body =~ s/=3D/=/g; $message_body =~ s/>/>\n/g;
the message body written to db doesnt contain any hyperlinks. Is there any way to solve this problemhttp://www.foo.com/bar.pl?aid=3D2744&bid=3D&cn=3DOM= Ddemo2&rid=3D0
Thanks
Sridhar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing URL using regular expression
by Sec (Monk) on Jul 20, 2005 at 15:24 UTC | |
|
Re: Parsing URL using regular expression
by Jaap (Curate) on Jul 20, 2005 at 15:22 UTC | |
by knsridhar (Scribe) on Jul 20, 2005 at 15:30 UTC | |
|
Re: Parsing URL using regular expression
by Anonymous Monk on Jul 20, 2005 at 16:00 UTC | |
by knsridhar (Scribe) on Jul 20, 2005 at 16:23 UTC |