in reply to Translating Env Variables
Instead of [^\$]* for the character class, I would think about using [^}]* instead. The reason is demonstrated by Abigail-II's post. If there is more than one '}' on any given line in your input file, then your regular expression will gobble everything up until the last one. using [^}] will make it stop at the first '}' character it finds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Translating Env Variables
by dave_the_m (Monsignor) on May 17, 2004 at 21:46 UTC |