Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 12 14:18:41 EDT 2025

Powered by FUDForum. Page generated in 0.10995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top