you are completely right with your comment on my solution failing on quoted delimiters. I should have mentioned that but was tempted to provide the easy-quick-and-not-perfect-solution ;-)
There would be ways to prevent this from happening, but as this is supposed to be a DB-like thing, your suggestion is much better (although it forces the OP to completely parse the file, recreate it and write out the data).
Regards,In reply to Re^2: Replacing nth occurrence of string
by svenXY
in thread Replacing nth occurrence of string
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |