in reply to Re: Replacing nth occurrence of string
in thread Replacing nth occurrence of string
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,
|
|---|