Re: [PHP] Grabbing image information from an html string

2003-03-25 Thread Kevin Stone
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))">?/',$

RE: [PHP] Grabbing image information from an html string

2003-03-25 Thread Dan Rossi
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

[PHP] Grabbing image information from an html string

2003-03-25 Thread Luis Lebron
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