I have a string which looks like : String s = "date1, calculatedDate(currentDate, 35), false";
.
I need to extract all param of verify
function. So the expected result should be :
elem[0] = date1
elem[1] = calculatedDate(currentDate, 35)
elem[2] = false
If I use split
function on ,
char but I got this result :
elem[0] = date1
elem[1] = calculatedDate(currentDate
elem[2] = 35)
elem[3] = false
Moreover, the method have to be generic, because some functions have 2 or 7 parameters...
Did you have any solution to help me on that?