Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » replacement preprocessor for text file
replacement preprocessor for text file [message #898545] Thu, 26 July 2012 10:47 Go to next message
l m is currently offline l m
Messages: 1
Registered: July 2012
Junior Member
I have an input text file that needs a lot of conversion to an output text file.

I would like to specify a sequence of replacement commands inside a script file, where each command would do its particular replacement throughout the text file. This script will contain possibly hundreds of replacement commands. The commands themselves can be simple replacement commands (e.g. replace all { with [) or more complex regular expressions.

This script would need to be run against various input files.

What is the best way to automate this process?

Thanks.


Re: replacement preprocessor for text file [message #898657 is a reply to message #898545] Fri, 27 July 2012 02:20 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 26.07.2012 16:47, l m wrote:
> I have an input text file that needs a lot of conversion to an output
> text file.
>
> I would like to specify a sequence of replacement commands inside a
> script file, where each command would do its particular replacement
> throughout the text file. This script will contain possibly hundreds
> of replacement commands. The commands themselves can be simple
> replacement commands (e.g. replace all { with [) or more complex
> regular expressions.
> This script would need to be run against various input files.
>
> What is the best way to automate this process?
Take a look at org.eclipse.text.edits.TextEdit.

Dani
>
> Thanks.
>
>
Previous Topic:keyboard layout causing trouble in eclipse 4.2
Next Topic:IDE for automotive application
Goto Forum:
  


Current Time: Sat Apr 19 03:09:31 EDT 2014

Powered by FUDForum. Page generated in 0.01896 seconds