<?php function markAnchor($str) { return preg_replace('/(#([0-9]+))/','<a href="show.php?id=$2">$1</a>',$str); } echo markAnchor("take a look at #42");
You have javascript disabled. You will not be able to edit any code.