in reply to Re^3: Converting multiple spaces to nbsp
in thread Converting multiple spaces to nbsp
oo! That's unexpected! I didn't realize that the previous substitution failed to affect ...
If you think about it, it has to be that way: otherwise you could end up subsituting out something that you've just put in there earlier in the same subtitution, and something like s/und/underground/g would get stuck in an infinite loop.
But it doesn't matter whether using the already-replaced text would enable further substitutions or prevent existing ones; in neither case is it taken into account.
Smylers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Converting multiple spaces to nbsp
by ikegami (Patriarch) on Jun 17, 2005 at 15:27 UTC |