Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello brother monks...
I have a series of lines throughout some generated output which come in the form of:
</a> <!-- rem_me --></li> <li>
I planned on replacing all instances of the middle line:
<!-- rem_me --></li>with <ul>
One would think that in my situation this would be a simple case of:
$html =~ s/<!-- rem_me --><\/li>/<ul>/sig;But strangely this didn't work... A quick search with a hex editor shows nothing out of the ordinary... There are two 0A characters on either side of the <!-- rem_me --></li> line, which can only be attributed to the \n characters...
So what am I missing here?
Regards,
Fib Jones
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird situation...
by GrandFather (Saint) on Mar 19, 2008 at 23:42 UTC | |
|
Re: Weird situation...
by ww (Archbishop) on Mar 20, 2008 at 02:27 UTC | |
|
Re: Weird situation...
by fibonacci_jones (Initiate) on Mar 19, 2008 at 23:23 UTC | |
by ikegami (Patriarch) on Mar 19, 2008 at 23:32 UTC | |
by fibonacci_jones (Initiate) on Mar 19, 2008 at 23:38 UTC | |
by ikegami (Patriarch) on Mar 20, 2008 at 01:40 UTC | |
by Anonymous Monk on Mar 20, 2008 at 09:22 UTC |