I have text like this. I want to split by New Line and Colons. Right now I’m splitting by New Lines.I’m using this code.
`data= data.split('\n')
and Its giving strange output. Can you please help? thanks
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.
\t are tabs. To clean things a bit, try this:
it will remove empty lines and strip whitespaces