View Single Post
Old 03-08-2004, 12:09 PM  
whee
Confirmed User
 
Join Date: Sep 2002
Location: http://www.nightstation.com
Posts: 1,375
PHP gurus! Question about "preg_match_all" function

Help anyone!
I've got the html of an extern gallery in a string by using fopen.
Now I wanna grab all the picture urls from this gallery by using RegX / preg_match_all whatever.
I've tried :

1. preg_match_all('/href=\"([^\"]+\.jpg)\"/i',$str,$arr2);

2. preg_match_all('/\"([^\"]+\.jpg)\"/i',$str,$arr2);

Does not seem to work.
I want all the picture urls from the gallery in an array.

Anyone who can give me the right search pattern ???? Or help me in the right direction?

Most appreciated... I've used long time on this.

__________________
http://www.nightstation.com
whee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote