正規表現 AND
(?=.*lemon)(?=.*apple)
は下記のすべての行にマッチ
lemon, apple, grape, orange apple, lemon, grape, orange grape, apple, lemon, orange
いやー知らなかったよー。
(?=.*lemon)(?=.*apple)
は下記のすべての行にマッチ
lemon, apple, grape, orange apple, lemon, grape, orange grape, apple, lemon, orange
いやー知らなかったよー。