06-10-2016, 02:44 AM
How to extract the XML string.
1. I want to "<string name="?">(*.?)</string>" extract only the string.
2. If there is a "aa" and "aa" only want to change the aa string.
However, aa, which is included in the string of case aa and aab to use the find command is changed.
Only 'aa' how do I change?
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="j">aa</string>
<string name="k">aab</string>
<string name="l">cc</string>
<string name="m">ddde</string>
<string name="n">fe</string>
<string name="o">f</string>
<string name="p">ggg</string>
<string name="q">hh1</string>
</resources>
1. I want to "<string name="?">(*.?)</string>" extract only the string.
2. If there is a "aa" and "aa" only want to change the aa string.
However, aa, which is included in the string of case aa and aab to use the find command is changed.
Only 'aa' how do I change?
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="j">aa</string>
<string name="k">aab</string>
<string name="l">cc</string>
<string name="m">ddde</string>
<string name="n">fe</string>
<string name="o">f</string>
<string name="p">ggg</string>
<string name="q">hh1</string>
</resources>