>- Open Your Mind -<



Quoting from [EMAIL PROTECTED]'s message (16-Aug-00 15:11:39).

m> i got a file with lines like this:
m> 
m> 2;"615165151";"L";20.15;9999456
m> 
m> what i need is a way to get rid of the quotes including informations. the
m> result should look like this
m> 
m> 2;615165151;L;20.15;9999456

CSV ("comma" separated variable) coming from excel, by any chance? What if the quoted 
variable has a quote *inside*? Does the line look like this?

    2;""15" long blade"";"L";20.15;9999456

If that's the case, all the solutions presented until now will break your code. I saw 
a good parsing function for this problem, but I'll let the author put it out. (-; (I 
negotiated the problem by brutal ad-hoc substitutions, which wouldn't work in the 
general case)

On the other hand, if you're *absolutely sure* no quote is part of the actual data, go 
ahead with any of the aforementioned solutions. :-)




Alessandro Pini ([EMAIL PROTECTED])

"Some parse to remember, some parse to forget" (-: Eagles :-)

Reply via email to