i want to be able to split a TextView into a new string every time there is a @.
E.g. if TextView says " hello where are you @ i am @ school"
Output: string one = "@ i am "
String two = "@ school"
I have tried
String[] separated = text.getText().toString().split("@ · ");
tv.setText("first " + separated[0] + " next " + separated[1] + " next " + separated[2] + " next " + separated[3]);