Hello, @brenda-gross, @dr-ramaanand, @terry-r and All,
@terry-r, your use of the search regex (?-si:"(?!\R)|(?!\A)\G)(?s-i:(?!").)*?\K(?-si:\R) is just clever, because :
Any string may occur after the first " character ( the word Select or else )
It ensure that, if the global replacement is re-run, no change will occur again, thanks to the negative look-ahead (?!\R) after the double-quote character
Now, Terry, we still can tune this search regex !
In all parts of this regex, alphabetic characters are not involved. So, we can omit the -i modifiers
In the first and last part of this regex, the regex . character is not involved, too. Thus, we can omit the -s modifiers as well !
We do not need the non-capturing group around the searched string \R, too
Thus, the shortest syntax of the generic regex S/R is simply :
FIND (?:"(?!\R)|(?!\A)\G)(?s:(?!").)*?\K\R
REPLACE \x20
Note that, if the OP speak of the smart quotes “ and ”, of Unicode value U+201C and U+201D, this regex S/R becomes :
FIND (?:“(?!\R)|(?!\A)\G)(?s:(?!”).)*?\K\R
REPLACE \x20
So, @brenda-gross, just follow this road map :
Open your file in Notepad++
Add an empty line at the very beginning of your file, for security
Hit the Ctrl + Home shortcut to move at the very beginning of your file ( IMPORTANT )
Open the Replace dialog
Uncheck all box options
According to your case, use, either :
FIND (?:"(?!\R)|(?!\A)\G)(?s:(?!").)*?\K\R
FIND (?:“(?!\R)|(?!\A)\G)(?s:(?!”).)*?\K\R
REPLACE \x20
Select the Regular expression search mode
Click, once only, on the Replace All button
=> All the lines between regular or smart quotes should be displayed in single lines !
Now, if you want to get rid of these quote characters, at beginning and end of some lines :
Move at the very beginning of your file ( IMPORTANT )
Find ^"|"$ or ^“|”$
REPLACE Leave EMPTY
Select the Regular expression search mode
Click once on the Replace All button
Best Regards,
guy038