Combining lines not starting with quote using Notepad++ regex -


i have csv text file looks this:

"1", "2", "3", text "4", "5", 

what trying combine lines don't begin quote. trying accomplish:

"1", "2", "3", text "4", "5", 

i can find results in following manner:

^[^"] 

but here problem. result letter "s" gets highlighted , want preserve letter , move next line. know going have use extended mode after regex search , replace.

some things note there many fields listed above. it possible there no carriage return before "some text" appears. there lot more fields, shortened simplicity sake.

any ideas?

use replacement:

\r?\n([^"]) 

or (as \r linebreak in notepad++)

\r([^"]) 

with

 $1 

the \r?\n matches linebreak, , ([^"]) captures symbol @ beginning of line not double quote. restore later getting captured text backreference $1.

settings:

enter image description here


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -