Below is the text I need to remove <w:drawing>
tags and its content from
<w:document>
<w:t>some text here</w:t>
<w:drawing>drawing image</w:drawing>
</w:document>
i tried this
$result = preg_replace('/<w:drawing\b[^>]*>(.*?)<\/w:drawing>/i', '', $xml);
but stil getting <w:drawing>
tags, any suggestion?
in result i want get
<w:document>
<w:t>some text here</w:t>
</w:document>