You've obviously never tried to use regular expressions to replace the contents of a div tag :)
$temp = preg_replace('/(]*>)[^<]*(<\/span>)/i', '\\1'.'replacement text here'.'\\2', $stringToModify);
You've obviously never tried to use regular expressions to replace the contents of a div tag :)
$temp = preg_replace('/(]*>)[^<]*(<\/span>)/i', '\\1'.'replacement text here'.'\\2', $stringToModify);
Leave a comment