var aa="Hello<img src='aaa.gif' alt='Picture 1'>The weather is good<img src='bbb.gif' alt='Picture 2'> Ha ha"
With the above code, what I ultimately want to get using regular expressions is the following text
Hello Picture 1 The weather is good Picture 2 Haha
How should I write it?
What I can think of is to use replace, but I really don’t know how to match img and extract alt information. Please help~