Mega Code Archive
Categories
/
Php
/
Strings
Replace the tag content without getting rid of any attributes
rntsoft.com
" ; $pattern = '/
.*?<\/a>/i'; $replacement = '
Click!
'; $string = preg_replace($pattern, $replacement, $string); print($string); ?>