My String is like
String body = "GH 1234 RING 5";
I want to extract the number 1234, RING and last 5 into separate variables and want to compare each of those values..It will be like.. pass = 1234, cmnd = RING and duration = 5 like this.. Please help me to figure out how to achieve this. Im doing like
String body="GH 1234 RING";
String pass=bodypass = body.replaceAll("[^0-9]", "");
to get the 1234 in it.But i cant find how to retrieve RING and 5.