ot;Luis Lebron" <[EMAIL PROTECTED]>; "Php-General (E-mail)"
<[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 12:39 PM
Subject: RE: [PHP] Grabbing image information from an html string
> if (preg_match('/(href|HREF)="?(\S+\.(jpg|png))">?/',$
if (preg_match('/(href|HREF)="?(\S+\.(jpg|png))">?/',$line, $matches)){
$filename[] = $matches[2];
}
-Original Message-
From: Luis Lebron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:07 AM
To: Php-General (E-mail)
Subject: [PHP] Grabbing im
Let say I have an html string that looks like this:
Title
foo bar bar fooSome more text.
I would like to pull the image filenames from the html and end up with
something like this
$images=array("image1.jpg", "image2.jpg")
How can I do this?
thanks,
Luis R. Lebron
Project Manager
Sigmatech, In
3 matches
Mail list logo