Hi I've got this little preg
preg_match_all('/<frame.+src="([^(http:\/\/)].+)".*>/U',$file,$matches);
Which works ok for most instances, it gives
Array
(
[0] => Array
(
[0] => <frame src="left_frame.php" name="leftframe" scrolling="YES" />
[1] => <frame src="./service/ord_find_intra.php" name="mainframe" />
)
[1] => Array
(
[0] => left_frame.php
[1] => ./service/ord_find_intra.php
)
)
However it doesn't match
<frame src="top_frame.htm" name="topframe" scrolling="NO" />
In order to match this I have to use
preg_match_all('/<frame.+src="([^(http:\/\/)]?.+)".*>/U',$file,$matches);
(added the ungreedy ? character after the character class) but surely this shouldn't make a difference if the ungreedy /U modifier is set.
Any ideas?
Thanks
Bubble