Iframe tags Regex
Posted: Mon Oct 26, 2009 11:05 am
Hi, I'm trying to parse iframe tags from html.
I have this pattern so far:
This works ok for something like:
But I want to parse also iframe tags like this one:
Does anyone knows how to parse that last iframe code (and the previous) in the same pattern?
Thanks.
I have this pattern so far:
Code: Select all
'#<iframe[^>]*>.*?</iframe>#i'Code: Select all
<iframe src='http://www.example.com' width='XXX' height='XXX'></iframe>
and
<iframe src='http://www.example.com' width='XXX' height='XXX'><a href="http://www.example.com">iframes not supported</a></iframe>Code: Select all
<iframe src='http://www.example.com' width='XXX' height='XXX' />Thanks.