1
var userQuestion = '10+5-√x+96';
2
var userQuestion = '10+5-√x+96-√x-2+√x';
i am expecting to get the value between square root and the next operator in the string and grouping them into different strings
how can i slice the string √x if i don't know it's index in dart.
and make other strings with respect to the number of √x in the string
eg in 1 i want a string slice that will create
var squareRoot = '√x';
and in 2 i want to get something like this
var squareRoot = '√x';
var squareRoot1 = '√x';
var squareRoot2 = '√x';