Reputation: 3764
I have a string "---\n- bb\n- j2me\n"
. I want to extract the words and save it into an array. Like ['bb','j2me']
. I tried the below but its not working.
"---\n- bb\n- j2me\n".split("\n")
If you have any idea please share.
Upvotes: 0
Views: 55