View Single Post
Old 02-19-2013, 12:57 AM   PM User | #6
Anishgiri
Regular Coder

 
Join Date: May 2010
Posts: 173
Thanks: 0
Thanked 0 Times in 0 Posts
Anishgiri is an unknown quantity at this point
Pardon for not clear example what I mean is $string="blablablabla http://website.com/aa/facade.JPG blablablabla". I need to extract the url from this. I already found a regular expression.

PHP Code:
preg_match_all('!http://.+\.(?:jpe?g|png|gif)!Ui' $string $matches); 
I am wondering an idea on how to create a rich text edit functionality where if you put url of image in this-->>>[IMG]image url here[/IMG], it will be parse this as an html code, which will display your image..
Anishgiri is offline   Reply With Quote