[ create a new paste ] login | about

Link: http://codepad.org/IgFEkU2w    [ raw code | output | fork ]

PHP, pasted on Mar 21:
1
2
3
4
5
<?php

echo $output = preg_replace("/<a(.+)>(.+)<\/a>/", "[$1 $2]","<a href=http://www.php.net/manual/en/memcached.add.php>add </a>");

?>


Output:
1
[ href=http://www.php.net/manual/en/memcached.add.php add ]


Create a new paste based on this one


Comments: