Parse Txt File with Reg Expression
I am just looking for some advice here about ASP regular expressions and if this could be done with them or any better ideas about how to handle this. We have some text files, that I will have the user upload to the server, these files are comma delimited, they need to be converted to tab delimited and we need to delete the quotes. We cannot use the replace function because of the fields would have comma within the quotes and we want to leave those alone such as this field ,"ELAN POLO, INC.", Below are a few rows of the text file, each file will contain about 107,000 lines to process.
4717836,912,1,1,201,5042,"ELAN POLO, INC.","M0225","M0225","EA R2000 CONV",54.99,29.97
13861155,912,1,1,201,5042,"ELAN POLO, INC.","M0345","M0345","EA WARNING TRACK MID",39.99,19.97
3809583,912,1,1,201,5042,"ELAN POLO, INC.","M0462","","EA SMOKE LO",29.99,24.99
3809606,912,1,1,201,5042,"ELAN POLO, INC.","M0462","","EA SMOKE LO",29.99,24.99
Thanks
Mike
__________________
Peace
Mike
http://www.eclecticpixel.com
|