我使用以下代码
String fulltext = "I would like to create some text and i dont know what creater34r3, ";
String subtext = "create";
int ind = -1;
do {
ind = fulltext.indexOf(subtext, ind + subtext.length());
} while (ind != -1);
结果,我找到了单词的第一个索引:
create creater34r3
但我只需要找到单词的第一个索引create
怎么做?帮助