→ celestialgod: 同時要有 就只能寫兩個str_detect 再用&接起來 11/19 18:53
→ celestialgod: 這裡的 | 是regular expression 不是邏輯運算子 11/19 18:53
→ andrew43: 要一次的話regex pattern會很醜吧,如果不只a和b的話。 11/19 19:03
→ wanson: 查了一下regular expression 的確沒有很合的 就算+也不太 11/19 20:24
→ wanson: 適用 似乎回圈是比較好讀跟方便的選擇了 11/19 20:24
推 cywhale: 用grepl("a",strs) & grepl("b",strs)? 11/20 00:46
推 celestialgod: 查了一下垃圾桶,W大你似乎刪掉不少篇有回應的文章 11/20 14:47
推 celestialgod: 如果再繼續刪除的話,我會考慮不再回你文章 11/20 14:48
推 psinqoo: 我是建議刪文水桶 11/22 08:52