Match for src-part of frame-tag
Posted: Fri Aug 19, 2005 6:58 pm
Hi
How can I extract all sources of each frame-tag. E.g if I had the following two frame tags in some html.
I want the regexp to return right.html and left.html...
I guess something like
should do the trick
How can I extract all sources of each frame-tag. E.g if I had the following two frame tags in some html.
Code: Select all
<frame name="right" src="right.html" scrolling="no">
<frame name="left" src="left.html" scrolling="no">I guess something like
Code: Select all
preg_match('[magic regexp]', $html, $matches);