I have a text
Category2,”Something with ,comma”
when I split this by ‘,’ it should give me two string
- Category2
- “Something with ,comma”
but in actual it split string from every comma.
how can I achieve my expected result.
Thanx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just call
variable.Split(new char[] { ',' }, 2). Complete documentation in MSDN.