note 98103 deleted from function.getimagesize by visualmind

From: Date: Wed, 26 May 2010 08:47:31 +0000
Subject: note 98103 deleted from function.getimagesize by visualmind
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169616@lists.php.net to get a copy of this message
Note Submitter: vindesh dot mohariya at gmail dot com ---- Find the Image URL using preg_match() syntax or something similar to extract JPG or PNG or GIF URLs from a mixed text and put them in an array or at last store the first url. maybe some syntax which searchs for strings that are beginning with http and ending with jpg/png/gif.. i believe it can be done with preg_match() Note: the text can be like that : $string =blablablabla http://www.xxx.com/xxx.jpg blablablabla $matches = array(); preg_match_all(‘!http://.+\.(?:jpe?g|png|gif)!Ui’ , $string , $matches); Thanks you Vindesh Mohariya

« previous php.notes (#169616) next »