String ss = "...qqqq:hello-a;hello-b;hello-c;hello-d,....";
Matcher matcher = Pattern.compile("(hello-[a-z])").matcher(ss);
int index = 0;
while (matcher.find()) {
index++;
if (matcher.group(1).equals("hello-c")) {
break;
}
}
System.out....
StringTokenizer st = new StringTokenizer("...qqqq:hello-a;hello-b;hello-c;hello-d,....", ";");int count = 1;while(st.hasMoreTokens()){if(st.nextToken().equals("hello-c"))...