I have a string "4,6,8\n9,4"
I want to split this based on ,and \n
Output array should be
4
6
8
9
4
Edit :
Now i am reading string from console , when i enter a string as above in console , in the code behind i get as "4,6,8\\n9,4"
. Now that i want to split using "," and "\\n"
. How can i change the expression ?