単語のリストがあり、括弧内の文字列のリストを削除する必要があります
day[1.0,264.0]
developers[1.0,264.0]
does[1.0,264.0]
employees[1.0,264.0]
ex[1.0,264.0]
experts[1.0,264.0]
fil[1.0,264.0]
from[1.0,264.0]
gr[1.0,264.0]
私は取得する必要があります
day
developers
does
.
.
.
.
このアプローチは正しいですか?
String rep=day[1.0,264.0];
String replaced=rep.replace("[","]","1.0","2");
また
このアプローチは正しいですか?
Pattern stopWords = Pattern.compile("\\b(?:i|[|]|1|2|3|...)\\b\\s*",Pattern.CASE_INSENSITIVE);
Matcher matcher = stopWords.matcher("I would like to do a nice novel about nature AND people");
String clean = matcher.replaceAll("");