yacoubean has asked for the wisdom of the Perl Monks concerning the following question:
Here's the expected result:$outdata =~ s{<cfmail}{<!--- <cfmail}g; $outdata =~ s{</cfmail>}{</cfmail> --->}g;
But this is what I'm getting:<!--- <cfmail to="#to_address#"> ...... </cfmail> --->
I can't for the life of me figure out why its repeating those comment tags over and over again.<!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!-- +- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- <!--- < +!--- <!--- <cfmail to="#to_address#"> ..... </cfmail> ---> ---> ---> ---> ---> ---> ---> --->
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpected results from a regex replacement
by jimbojones (Friar) on Nov 10, 2004 at 22:06 UTC | |
by yacoubean (Scribe) on Nov 10, 2004 at 22:14 UTC | |
by Eimi Metamorphoumai (Deacon) on Nov 10, 2004 at 22:23 UTC | |
|
Re: Unexpected results from a regex replacement
by ikegami (Patriarch) on Nov 10, 2004 at 22:07 UTC | |
|
Re: Unexpected results from a regex replacement
by bgreenlee (Friar) on Nov 10, 2004 at 22:08 UTC | |
by yacoubean (Scribe) on Nov 10, 2004 at 22:21 UTC | |
by yacoubean (Scribe) on Nov 10, 2004 at 22:28 UTC | |
by jimbojones (Friar) on Nov 14, 2004 at 17:01 UTC | |
|
Re: Unexpected results from a regex replacement
by dimar (Curate) on Nov 10, 2004 at 22:28 UTC |