i have three text boxes

text1.text one line
text2.text one line
text3.text several lines


i need to search text3.text line by line
if i found one of the lines = text1.text then
replace this line with text2.text