in reply to Translating Env Variables

I think your regex will fail on a line like this:
Hello, ${world}, {Oops}
Where is your file coming from? Do you have to expand variables like the shell does? Then there's a lot more than just ${VAR}.

Abigail

Replies are listed 'Best First'.
Re: Re: Translating Env Variables
by Anonymous Monk on May 17, 2004 at 13:47 UTC
    Thanx for the reply, the file format would not allow such a format as you mentioned. The script just has to translate the mentioned variables as that is the forced format