<?php $text = 'some text [img:http://example.com/_data/025_img.jpg] more text'; echo preg_replace( '~\[img:\s*(https?://example\.com(?:/\w+)*\.(?:jpe?g|png|gif))]~', '<img src="$1" border="0" />', $text );
You have javascript disabled. You will not be able to edit any code.