I am trying to replace the regex using perl. I have used sed in perl but however, it doesn't seem to work.
Sample lines to be replaced in a file trans.xml
'fairness' and 'efficiency’
I need to replace 'efficiency’ as ‘efficiency’
I tried the below code,
system "sed -e 's/\&\#x0027\;\([a-zA-Z0-9 _]*\)\&\#x2019\;/tooch&/g' trans.xml > tmp.xml";
system "sed -e 's/tooch\&\#x0027\;/\&\#x2018\;/g' tmp.xml > trans.xml"
The above sed commands works manually but not from inside the Perl.
Any help would be greatly appreciated !!