Ok so i have this string
Something 06/15/2009 some other data 33 77
And I want to seperate then like this
Something
06/15/2009
some other data
33
77
Any idea a clean way to do this
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.
You could try:
Rubular example
Gives what you want for the example given at least.
Update:
It might be better to make the .+ parts greedy:
This way, ‘something’ or ‘some other data’ can include dates and numbers.