pysome has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I wanna to replace these "TXT" ONLY locate out of TAGS to "FOO", How to compose the regex??
update:NO while loop
I wanna to replace these "TXT" ONLY locate out of TAGS to "FOO", How to compose the regex??
After substitution,I want to get $str is :my $str = '<a code=TXT> abc TXT </a> <text code=TXT> efg TXT </text> < +input s=TXT> hig TXT</input>';
Thanks in advance.<a code=TXT> abc FOO </a> <text code=TXT> efg FOO </text> <input s=TXT +> hig FOO</input>
update:NO while loop
Back to
Seekers of Perl Wisdom