why Perl replaces text when there is no last part after previous: *<hashTree/>. *</hashTree>.? – CentOS
I want to remove by Perl parts of xml file (elements of JMeter test plan) which are: <hashTree> <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="SON-ASS" enabled="true"> <stringProp name="JSON_PATH">$.status</stringProp> <stringProp name="EXPECTED_VALUE">ok</stringProp> <boolProp name="JSONVALIDATION">true</boolProp> <boolProp name="EXPECT_NULL">false</boolProp> <boolProp name="INVERT">false</boolProp> <boolProp name="ISREGEX">false</boolProp> </JSONPathAssertion> <hashTree/> </hashTree> 1st time…