in reply to
search and replace is not working as expected...
your (.*) should be (.*?), otherwise it will include <\/doct>, which is not what you expected. ? simply make the s/// more lazy.
Comment on
Re: search and replace is not working as expected...
In Section
Seekers of Perl Wisdom