My input String
is as below,
{"string name"=hi;"id"=44401234;"string name"=hey;"id"=87695432.....}
I want only the ids as output like, {44401234 87695432}
for(int i=0;i<input.length();i++)
{
int index=input.indexOf("id");
hh=input.substring(index+4,index+12);
System.out.println(hh);
}