Remove from string

I need to remove:

<p style=&quot;float: left&quot;>
<img src=&quot;/path/path-123.jpg&quot; alt=&quot;this is the title&quot; />

from a string, where 123 can be any number 0 to 9, and “this is the title” changes too.

How can i do with with preg_replace ?

you have to write a regular expression for this

for example this script will replace <p