Re: Can We Do Sed-Style Regex in 4GL?
Posted in 2000
"Elisa Roselli" <e.roselli@volusoft.com> writes: > We have a problem with a program written in Informix 4gl for the purposes of > internationalising the error messages in the modules of our applications. > > What we want to do is a very straightforward text substitution throughout > the modules. Under Unix, using a system call to sed, we got the results we > wanted with a single line of code along the lines > s/regular_expression_to_be_substituted/substitution_string/ . But our > supervisor has just reminded us that we need to stay platform independent. > Should our development environment switch to Windows, system calls to Unix > from within our 4gl application modules could cause problems. Why don't you just ship a win32 version of sed with your program? http://www.itribe.net/virtunix/ Thomas