# If you'd like to omit non-matching lines from the result; add ';d' to the end of the expression.
sed -E 's/(<p value="id">(?=1445).+\R.+<p value="IP">)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(.+)/\110.25.30.19\3/gm;t' <<< " <list name=\"ItemList\">
<item>
<p value=\"id\">1445</p>
<p value=\"IP\">10.25.30.19</p>
<p value=\"Prflen\">26</p>
</item>
<list name=\"ItemList\">
<item>
<p value=\"id\">1499</p>
<p value=\"IP\">10.40.50.53</p>
<p value=\"Prflen\">26</p>
</item>
<list name=\"ItemList\">
<item>
<p value=\"id\">1445</p>
<p value=\"IP\">10.45.70.19</p>
<p value=\"Prflen\">26</p>
</item>
<list name=\"ItemList\">
<item>
<p value=\"id\">1446</p>
<p value=\"IP\">10.77.90.55</p>
<p value=\"Prflen\">26</p>
</item>"
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for SED, please visit: https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html