Find lines not starting with " in Notepad++

前端 未结 3 1451
北恋
北恋 2020-12-07 20:13

I try to verify a CSV file where we had problems with line breaks.

I want to find all lines not starting with a \".

I am trying with /!^\"

3条回答
  •  误落风尘
    2020-12-07 20:54

    In Notepad++ you can use the very usefull negative lookahead

    In your case you can try the following:

    ^(?!")
    

    If you want to match wholes lines add .+ or .{1,7} or anything e.g.:

    ^(?!").*
    

    will also match empty lines.

    Explanation part

    ^ line start

    (?!regexp) negative lookahead part: this means that if the regexp match, the result will not be shown

提交回复
热议问题