Re: replacing multiple instances of commas beginning at specific position

2005-11-15 Thread Bengt Richter
On Tue, 15 Nov 2005 08:26:22 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On 14 Nov 2005 09:43:57 -0800, "striker" <[EMAIL PROTECTED]> declaimed >the following in comp.lang.python: > >> >> What would be the best approach to replace all instances of multiple >> commas with just one comma, ex

Re: replacing multiple instances of commas beginning at specific position

2005-11-14 Thread bruno at modulix
striker wrote: > I have a comma delimited text file that has multiple instances of > multiple commas. Each file will contain approximatley 300 lines. For > example: > > one, two, threefour,fivesix > one, two, three,four,,eighteen, and so on. > > There is one time when multiple

Re: replacing multiple instances of commas beginning at specific position

2005-11-14 Thread Micah Elliott
On Nov 14, striker wrote: > I have a comma delimited text file that has multiple instances of > multiple commas. Each file will contain approximatley 300 lines. > For example: > > one, two, threefour,fivesix > one, two, three,four,,eighteen, and so on. > > There is one time whe

replacing multiple instances of commas beginning at specific position

2005-11-14 Thread striker
I have a comma delimited text file that has multiple instances of multiple commas. Each file will contain approximatley 300 lines. For example: one, two, threefour,fivesix one, two, three,four,,eighteen, and so on. There is one time when multiple commas are allowed. Just prio