Notepad++ search with a logical AND
notepad++, regex
Solution
Find -> Regular expression, then type
(CAT)(.*?)(ROAD)
Problem
Using Notepad++ I need to find lines that would contain 2 keywords (both). I've found how to combine 2 regex with a logical 'or' operator. Example: `(searchword1)|(searchword2)` But how do I combine with logical 'and'? Tried &, &&.. no success. Example of input: ``` The CAT goes up and down the ROAD. The CAT goes up and down the CITY. ``` Search words: `CAT & ROAD` Expected result: line1