Mike McManus wrote: >replaceText((line n of textToParse),"red","blue") > >always generate the error: Expression: missing ')' before factor. The >error comes up with or without the internal parans, and if I use a >variable instead of a chunk. I even get it when I use a simple quoted >string. Try : replace "red" with "blue" in line n of textToParse