Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードがある場合:
Pattern p = Pattern.compile("Fiat|Panda|Ford"); String searchStr = "Fiat Panda 4747 "; Matcher m = p1.matcher(searchStr); while(m.find()) { System.out.println(m.group()); }
「Fiat」、「Panda」、「Ford」のどのキーワードが見つかったかを知ることはできますか?