[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re; conditional replace
- From: Duck <duck@...>
- Date: Wed, 26 Sep 2007 07:53:01 +1000 (EST)
I think you'll find nested tables easier to maintain.
You'll have one extra table for each substitution,
but I think that's a fair price for some added clarity
This is not only clearer than my approach, but also safer since the
strings on which to match aren't duplicated in the code (so you can't
accidentally get one of each pair wrong).