The 3 strings (here are HTML codes, please don't say use HTML parsers, I have to use RegEx):
</div><img src="http://www.example.com/nano.png" alt="NANOTECH" />
</div><img src="http://www.example.com/internet.gif" alt="INTERNET" />
</div>
I want to capture there 3 lines. So tried this: (PHP preg_match
)
<\/div>.[<img src="http:\/\/www.example.com\/.*?\/>]+
But it gets just </div><img src="http://www.example.com/
What's wrong?