Notepad++ use both regular expressions and extended search
I need to find all \r\n that do not precede the letter M; Seems I can't do this: \r\n[^M] I can only do \r\n with extended search selected or [^M] with regular expressions selected; but not together. You should instead use this regex: \R(?!M) Explanation: \R Any Unicode newline sequence. (?!M) Negative Lookahead : Assert "M" cannot be matched. \r\n is valid with Regular expression checked in the Find tab too - i.e. not just with Extended checked: why not just use \r\n[^M] with Regular expression checked? Given the following test text... whatever M whatever G foo ..., \r\n[^M] yields the