Can regular expression JavaScript be used to get a div tag containing an img tag?
i have a generated string like it tesgddedd<br> <div><img style="max-width: 10rem;" src="folder/mypicture.jpg"><div> <br></div></div> I want to get div contains img and to add css class in this div et to have a new string liket it tesgddedd<br> <div class="myCssClass"><img style="max-width:…