<?php echo preg_replace('/#(\d\w)+/i', '<a href="#">$0</a>', '#11 #f1 #1f #ff');
You have javascript disabled. You will not be able to edit any code.