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.
私は次のものを持っていると考えてください
array = ["Master Bathroom - Toilet", "Guest Bathroom - Toilet", "Kitchen - Faucet", "Master Bathroom - Faucet"]
パターン「Toilet」が配列に出現する回数を調べる必要があります。
この場合、結果は2になるはずです。これを行う方法について何か考えはありますか?