mahira has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with a substition
The text is;
From: aaa@bb.netxxxMessage-Id: xxx<200902131530.n1DFUZ5l001303@aaa.bb.net>xxxTo: xxx@yyy.netxxxSubject: Size atanan xxx numarali ticket hakkindaxxxContent-Type: text/plain; charset=ISO-8859-9xxxContent-Transfer-Encoding: 7bit
The substitution regex is;
$to_email =~ s/.+To:\s(.*)xxx/\1/;
The result is;
xxx@yyy.netxxxSubject: Size atanan xxx numarali ticket hakkindaxxxContent-Type: text/plain; charset=ISO-8859-9xxxContent-Transfer-Encoding: 7bit
The result must be;
xxx@yyy.net
Please help... Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex substitution problem
by almut (Canon) on Feb 14, 2009 at 13:05 UTC | |
by mahira (Acolyte) on Feb 14, 2009 at 14:04 UTC | |
|
Re: Regex substitution problem
by jethro (Monsignor) on Feb 14, 2009 at 12:51 UTC | |
by mahira (Acolyte) on Feb 14, 2009 at 13:07 UTC | |
|
Re: Regex substitution problem
by ww (Archbishop) on Feb 14, 2009 at 13:20 UTC | |
|
Re: Regex substitution problem
by AnomalousMonk (Archbishop) on Feb 14, 2009 at 13:26 UTC | |
|
Re: Regex substitution problem
by Anonymous Monk on Feb 15, 2009 at 03:13 UTC |