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.
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..