Regular expression to replace comma for a csv file import

Hi

I got the same problem!

I mean I use the string.replace(vbCrLf,"<br>") for removing the line breaks in a string that comes from sql db to CSV file. It works for some but still there are few records which will go to new line even with the above code. Is there any other line breaks a part from vbCrLf in asp.net?

Regards

Mykhan

[378 byte] By [mykhan] at [2008-1-10]
# 1

Environment.Newline is what I use over vbCrLf

Also in .NET 2.0 Microsoft introduced a class for parsing delimited textfiles, making it much easier that doing your own parsing. Have a look at the MSDN documentation for the following class:

Microsoft.VisualBasic.FileIO.TextFieldParser

kleinma at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Hi.i have a text box and a required field validator.how do i set the validation expression to make the regular expression validator to work as a required field validator and regular expression validator.that is my textbox should take only nos from 1-9 and should not be empty. please help me out..
shivaraj at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...