I am trying to use a replace command within a large number of text files. What I am trying to do is replace text that contains some words, then a number, and then more words. All the words will be the same, but the number could be different.
Code: Select all
put "hello1234beep some text" into theText
replace "hello" & <The Number> & "beep" with "more text" in theText
Also, I will not know the position of the string to replace within the text file. (Otherwise I could just replace word 1, and word 2...)
Any idea how to do what I want?
Thanks,
Andrew