Re: [Perl-unix-users] Need help for regular expression problem

2009-12-08 Thread Brian Raven
walter.l...@schwindt.eu <> wrote: > Hello, > > I have the following strings: > TEST1=/bla/\${var1}/bla/${var2}a${var3}/bla > TEST2=/bla/\${var1}/bla/${var2}${var3}/bla > > I want to transform them: > TEST1=/bla/\$ENV{var1}/bla/$ENV{var2}a$ENV{var3}/bla > TEST2=/bla/\$ENV{var1}/bla/$ENV{var2}$ENV{

Re: [Perl-unix-users] Need help for regular expression problem

2009-12-08 Thread Matt Schneider
esday, December 08, 2009 10:07 To: perl-unix-users@listserv.ActiveState.com Subject: [Perl-unix-users] Need help for regular expression problem Hello, I have the following strings: TEST1=/bla/\${var1}/bla/${var2}a${var3}/bla TEST2=/bla/\${var1}/bla/${var2}${var3}/bla I want to transform them:

[Perl-unix-users] Need help for regular expression problem

2009-12-08 Thread Walter . Laub
Hello, I have the following strings: TEST1=/bla/\${var1}/bla/${var2}a${var3}/bla TEST2=/bla/\${var1}/bla/${var2}${var3}/bla I want to transform them: TEST1=/bla/\$ENV{var1}/bla/$ENV{var2}a$ENV{var3}/bla TEST2=/bla/\$ENV{var1}/bla/$ENV{var2}$ENV{var3}/bla The rule: substitute all $var to $ENV{var