how to remove char (“) from the begin and the end of a string ?
ex: "1234"567" ==> 1234"567
thank’s in advance
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.
http://msdn.microsoft.com/en-us/library/d4tt83f9.aspx
Note that this will remove any amount of quotes at the beginning or the end of the string. If you only want to remove at most one from each end, see Anthony Pegram’s answer. Or do it with regex: