Code: Select all
FileRead, fileText1, %filepath1%
StringReplace, NewFileText1, fileText1, SEARCHTERM1, %ReplacementPhrase%, All
Now I want to only replace a phrase, for instance "non-us-residency" with "us-residency" in relation to certain other search terms, for instance "SEARCHLast3" here.
The desired code would replace "non-us-residency" below with "us-residency" but ONLY after certain terms (e.g. that are five lines above the term to be replaced here), for instance SEARCHLast1 and SEARCHLast3, but ONLY those phrases, not SEARCHLast 2, for instance.
Code: Select all
>SEARCHLast3</lastName
/></sfApplicantName
><sfAppResChk
><resCheck
><ResidencyRadio
>non-us-residency</ResidencyRadio