I am writing a vcf parser and I have the file open but now I need to parse their first name. The file shows “FN:John Smith;;;\n\r” I want to take out the \n and \r. Can anybody help me?
Share
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.
Use the
rstripfunction:This will remove all whitespace from the end of your string.