I have this sample text
<figure class="image image_resized" style="width:100%;"><img src="blog.png"></figure>Egypt
I'm doing a find an replace to remove width:*pt;, any width property using pt units. In the above case there is none so my regex selects everything after width:. I'm still learning regex, can someone point out my mistake? Here's my regex
/width:\s*[\w\W]+?pt;?/