How to find and replace table width and image width in plain html files. example if actual image width is 280 <table width="100%"> <img src="" width="280">
I want to replace width=10% width=28 <table width="10%"> <img src="" width="28">
eg
preg_replace(array("/width=\"100%\"/","width=\"28\""),array("width=\"10%\"","width=\"28\""),$text);