Search for multi lines and replace them with multi lines

hi ,
I want to replace the following two lines :
‘Enter ZIP code’
WebUI.setText(findTestObject(‘Object Repository/Pages/Purchasing/MilestoneThree-GetApproved/OrderYourAppraisal/ZIP’), GlobalVariable.ZIP)

with
‘Wait for ZIP code field to present’
WebUI.waitForElementPresent(findTestObject(‘Object Repository/Pages/Purchasing/MilestoneThree-GetApproved/OrderYourAppraisal/ZIP’), 5)

‘Enter ZIP code’
WebUI.setText(findTestObject(‘Object Repository/Pages/Purchasing/MilestoneThree-GetApproved/OrderYourAppraisal/ZIP’), GlobalVariable.ZIP)

Search only search & replace one line
I am using katalon version 8.0.5

If you know of any application that can Find and Replace multiple lines, then use it. The scripts are on disk in your project folder. Just make sure to have a backup copy of your scripts in case you do an oops.

Well, I just had a Duh moment. I have used “Komodo Edit” for years and I just discovered it can Find and Replace multiple lines, so perhaps you can use it (it’s free) until KS adds that functionality.

image