Regex to identify rows that do not contain exact number of occurences of quotemark character using Notepad++

Posted by SamAspin on Stack Overflow See other posts from Stack Overflow or by SamAspin
Published on 2012-10-04T16:55:59Z Indexed on 2012/10/05 9:37 UTC
Read the original article Hit count: 331

Filed under:
|

I would like to be able to jump to rows that dont contain 6 quotemarks in a quoted-CSV file as it feels like a good way to identify broken rows.

I think using a regular expression with Notepad++'s find features would be a sensible approach but I'm not sure how to pick the rows up.

6 quotemarks (") would suggest a complete row so I want to skip to any row that does not contain 6.

Here is some sample data to play with, in this example its the 4th line I'd like to jump to

"sam","mark","dave"
"sam","mark","dave"
"sam","mark","dave"
"sam","mark","
dave"
"sam","mark","dave"
"sam","mark","dave"

© Stack Overflow or respective owner

Related posts about regex

Related posts about notepad++