gem555 has asked for the wisdom of the Perl Monks concerning the following question:
How to substitute all the '<' between the <\w*> and <\/w*> towhile(<DATA>){ s/<\w*>(.*)<\/w*>//g; } __DATA__ <p>Shouldn't I be allowed < to choose whom I want to associate with?< + Now, add the fact that my sister and her husband are still very < at +tached to my ex, as they should be. The problem is they now include " +her."</p> <span>Shouldn't I be allowed < to choose whom I want to associate with +?< Now, add the fact that my sister and her husband are still very < + attached to my ex, as they should be. The problem is they now includ +e "her."</span>
. I have to substitute all the characters '<' to '
' in between the <tags>.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substitute character
by Utilitarian (Vicar) on Sep 02, 2009 at 08:19 UTC | |
|
Re: substitute character
by arun_kom (Monk) on Sep 02, 2009 at 07:50 UTC | |
by gem555 (Acolyte) on Sep 02, 2009 at 08:52 UTC | |
by arun_kom (Monk) on Sep 02, 2009 at 09:18 UTC | |
by gem555 (Acolyte) on Sep 02, 2009 at 09:29 UTC | |
by Corion (Patriarch) on Sep 02, 2009 at 09:36 UTC | |
|