Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Search for " in Strings Re:

From: alex:pini:mclink:it at: 16-Aug-2000 19:41

>- Open Your Mind -<
Quoting from [moeller_thorsten--gmx--de'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 ([alex--pini--mclink--it]) Some parse to remember, some parse to forget (-: Eagles :-)