Notepad++ use both regular expressions and extended search

前端 未结 2 490
既然无缘
既然无缘 2020-12-20 08:33

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<

2条回答
  •  盖世英雄少女心
    2020-12-20 08:54

    You should instead use this regex:

    \R(?!M)
    

    Explanation:

    • \R Any Unicode newline sequence.
    • (?!M) Negative Lookahead: Assert "M" cannot be matched.

提交回复
热议问题