<?php $string = "[url]http://www.lol.nl[/url]"; $bericht = preg_replace("/\[url=([^[]*)\]([^[]*)\[\/url\]/", "<a href='1' target='_blank'>\\2</a>", $string); echo $bericht; ?>
You have javascript disabled. You will not be able to edit any code.