for Example
i Have a string like
String example = "Hello\nHow\nAre\nyou today? I Love Pizza"; //
What i want is an Array like this
[Hello, \n, How, \n, Are, \n, you, today? , I , Love, Pizza]
I tried Already
String[] splited = example.split("[\\n\\s]+");// as will a lot of regular exprisions like ("\\n\\r+") etc.
but they didnt work .
have anyone a solution please ?