PC Review


Reply
Thread Tools Rate Thread

csv with embedded commas???

 
 
misscrf
Guest
Posts: n/a
 
      26th Jan 2007
I have a csv. There are no text " delimiters. I am trying to validate
the parsing, but within some fields there are embedded commas. This is
in fields that have things like an email where it might say:

2/24/2006,1:23PM,Smith, John <(E-Mail Removed)>,next field,next
field,etc

I can't seem to figure this out. Can anyone help me to get this to
parse right?

Thank you,

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      26th Jan 2007
The best solution would be to correct the output file to delimit the text
fields correctly, otherwise how can you know which commas are delimiters and
which are actually text ?

If this is not possible and the format is consistent, maybe:
-Find the first "PM"
-Find the first "<", assuming it cannot appear in the name
-Take everything between the 2 values above to be the name.

NickHK

"misscrf" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a csv. There are no text " delimiters. I am trying to validate
> the parsing, but within some fields there are embedded commas. This is
> in fields that have things like an email where it might say:
>
> 2/24/2006,1:23PM,Smith, John <(E-Mail Removed)>,next field,next
> field,etc
>
> I can't seem to figure this out. Can anyone help me to get this to
> parse right?
>
> Thank you,
>



 
Reply With Quote
 
misscrf
Guest
Posts: n/a
 
      26th Jan 2007
Thanks for the reply. Unfortunately, I have no control over the
output. I wish I did! lol.

I think I am going to start from scratch as the file was less of a mess
when I started cleaning it up, vs now.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows xp embedded vs non-embedded ? regarding solid state / flashdrives. jameshanley39@yahoo.co.uk Windows XP Embedded 4 12th Aug 2008 05:59 PM
Embedded Team Blog: http://blogs.msdn.com/embedded/ Andy Allred [MS] Windows XP Embedded 0 17th Mar 2005 01:43 PM
Edit Embedded Word Document OR::: Batch remove embedded docs & creat linked file Sharper Microsoft Access Forms 0 30th Jan 2005 12:15 PM
Edit Embedded Word Document OR::: Batch remove embedded docs & creat linked file Sharper Microsoft Access Forms 0 30th Jan 2005 12:15 PM
Replacing embedded images... or switching embedded to linked... Tom Microsoft Powerpoint 3 27th Jul 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 AM.