Код: Выделить всё
String s=" \"son of god\"\"cried out\" a good day and ok ";
< /code>
Это показано на экране как: < /p>
"son of god""cried out" a good day and ok
Pattern phrasePattern=Pattern.compile("(\".*?\")");
Matcher m=phrasePattern.matcher(s);
< /code>
Я хочу получить все фразы, окруженные "" "и добавить их в ArrayList < /code>. Это может иметь более 2 таких фраз. Как я могу получить каждую фразу и поместить в свой ArrayList Подробнее здесь: https://stackoverflow.com/questions/367 ... rounded-by