Firstly I am not a java developer and do most of my java work via google
. I am trying to have a search and replace function in ECMAScript
that reads in a file, and then does a search and replace for certain
strings, and using variables as the replacement variable.

Seeing posts like these in the forums:

Gives me the idea I could use and FileWriter to do
the search and replace, but would love some help with the how to.

Have found a great Java example of using a hashtable to do the search
and replace here: 'Re: Searching/replacing multiple words in input.'

However would like to do something like that but in ECMAScript so that
I won't require an extra jar in my IDM directory, and have to restart
eDir each time I make a change to the code.

Any suggestions as to how I could achieve this?

plambrechtsen's Profile:
View this thread: