I have lines in an ASCII text file that I need to parse.
The columns are separated by a variable number of spaces, for instance:
column1 column2 column3
How would i split this line to return an array of only the values?
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.
\smeans a whitespace character, the+means 1 or more..split()splits a string into parts divided by the specified delimiter (in this case 1 or more whitespace characters).