I have a string #JSGF V1.0;grammar numbers;public <accion> = (one| two| three);
I want the numbers: one, two and three.
I did this String answer = res.substring(res.indexOf("(")+1,res.indexOf(")"));
and obtain one| two| three
, but Im having trouble in this part.
Ideas?