Posted by kosanovic on 10/12/07 16:44
<?php
$htmlc=" \"http://example.com/file1.jpg\" kjkjskfj \"http://
blabla.com/image2.png\" dsgdg";
preg_match_all("/.*(jpg|png)$/", $htmlc, $matches);
echo '<pre>' . print_r($matches, true) . '</pre>';
?>
outputs:
Array
(
[0] => Array
(
)
[1] => Array
(
)
)
I need to extract:
http://example.com/file1.jpg
http://blabla.com/image2.png
Navigation:
[Reply to this message]
|