hennessy
hennessy

Reputation: 331

Notepad++ RegEx: Search for multiple words in a huge text file

I have a text file with about 4000 lines of text in it. I need to search for the words "there" and "when". Ive tried a few regex type of things but they all do it wrong or dont get detected at all. So how would I search for those 2 words and it would show ALL the matches for both words?

Thanks in advance!

Upvotes: 8

Views: 48454

Answers (1)

Adam Adamaszek
Adam Adamaszek

Reputation: 4044

Use this regex

(there|when)

and make sure you enabled the "regular expression" radio button.

You can also use

there|when

if you don't need to use references for search&replace.

Upvotes: 23

Related Questions