http://www.perlmonks.org?node_id=1031586


in reply to Re: how to extract iframes from text
in thread how to extract iframes from text

Infinite loop for this test file:

<iframe id="derp" src="http://derp" width=800 hight=800> </iframe>

Output:

<iframe id="derp"</index> <iframe id="derp"</index> <iframe id="derp"</index> <iframe id="derp"</index> ....and so on

This is why it's better to use a parser to deal with mark up languages where possible.

Update: added missing " to input file and output.