Klaus, What Andre said. Nonetheless, if you want to continue down the regex path, try something like get matchText(tText,"(?s)<" & tTag & ">(.*?)</" & tTag & ">",tValue) replace "<" & tTag & ">" & tValue </" & tTag & ">" with "<" & tTag & ">" & tNewValue </" & tTag & ">" in tText -- Mark Wieder