I need to replace img tag. Orginal tag is for example :
<img src="index.php?act=img&sub=article&id=35558" width="150" height="172">
then i want to replace it to :
<img src="index.php?act=img&sub=article&id=35558" style="width: 150px; height: 172"/>
Id in src is changable.
I dont know how to define proper pattern , i've tried several but none was worked.