Regex is an option, but it usally doesn't work well for nexted delimiters (which can happen with iframes).
I personally like Mojo::DOM for this kind of task:
use Mojo::DOM; say Mojo::DOM->new($yourstring)->at('iframe');
In reply to Re: how to extract iframes from text
by moritz
in thread how to extract iframes from text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |