mav3r1ck
mav3r1ck

Reputation: 11

OR (|) doesn't work in notepad++ regexp search

I tried to search for SQL statements + some metadata in my logs using following search query:

(\d+?\s+?INSERT) | (\[\d+?\]\{\d+?\}\s+?SELECT)

but it finds only 1st part. If I put 2nd brackets in the first position - it finds it, but not the other one.

Upvotes: 0

Views: 71

Answers (1)

Lorenzo Boccaccia
Lorenzo Boccaccia

Reputation: 6141

you have a space between the two clause - that will be required to match and it won't if SELECT is at the beginning of a line

Upvotes: 1

Related Questions