I guess you should use "re" module ... In this case  re.split("\D,\D",
YOUR_STRING)  should work. (splits only when "," is between two
non-digits).

for details and more options see python-docs.

cheers,
amit.

On 4/6/06, Fulvio <[EMAIL PROTECTED]> wrote:
> Alle 11:23, giovedì 06 aprile 2006, Chris P ha scritto:
> > when splitting based on a delimiter of "," the above string gets broken up
> > in 5 "columns" instead of 4 due to the "," in the money amount.
>
> There should be cvs package in the python directory. Why don't you try that
> way?
> Reading some help gives more details of its use.
>
> F
> --
> http://mail.python.org/mailman/listinfo/python-list
>


--
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to