in reply to Re: Approach to remove brackets from config
in thread Approach to remove brackets from config
If the syntax of the config file is fully represented in the example, a single regex substitution on each line could be enough. Something like:
s/^\s*([\w-])\s*/"$1" => /Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Approach to remove brackets from config
by samtregar (Abbot) on Aug 21, 2008 at 16:07 UTC |