Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread MRAB
On Jun 12, 8:06 pm, bvdp <[EMAIL PROTECTED]> wrote: > dmitrey wrote: > > hi all, > > howto split string with both comma and semicolon delimiters? > > > i.e. (for example) get ['a','b','c'] from string "a,b;c" >

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread bvdp
dmitrey wrote: hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string "a,b;c" I have tried s.split(',;') but it don't work Thx, D. Howabout: s = s.replace("

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread Daniel Fetchinson
> howto split string with both comma and semicolon delimiters? > > i.e. (for example) get ['a','b','c'] from string "a,b;c" > > I have tried s.split(',;') but it don't work A very pedestrian solution would be: def m

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread Gary Herron
dmitrey wrote: hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string "a,b;c" I have tried s.split(',;') but it don't work Thx, D. -- http://mail.python.org/mailman/listin

howto split string with both comma and semicolon delimiters

2008-06-12 Thread dmitrey
hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string "a,b;c" I have tried s.split(',;') but it don't work Thx, D. -- http://mail.python.org/mailman/listinfo/python-list