On Apr 6, 2006, at 7:38 AM, Amit Khemka wrote:
> 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).
This works assuming all line elements are quoted.
This would fail if (and this too my knowledg
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
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
Hello list,
I just started using python and I must say I enjoy it very much.
I do have an issue in which I hope to get some pointers to.
I have a string, which I need to split based on a delimiter. This I
know how to do. But what I cannot figure out is, take for example the
following:
"column 1