](.*)[^<\/tag>]/"; $search = "/[^', ''); $ret = str_replace("", "", $ret); $ret = str_replace("water temperature:", "temperatura atual da agua", $ret); $ret = str_replace("pointer", "initial", $ret); echo $ret; } function replace_between($str, $needle_start, $needle_end, $replacement) { $pos = strpos($str, $needle_start); $start = $pos === false ? 0 : $pos + strlen($needle_start); $pos = strpos($str, $needle_end, $start); $end = $pos === false ? strlen($str) : $pos; return substr_replace($str, $replacement, $start, $end - $start); } ?>