I have a source file where I use a macro to do logging. Typical logging lines look like:
STDOUT_LOG(logDEBUG4) << \"a single line log text\" << aVari
You can use a regex like this with s (single line flag):
s
\).*?<<(.*?);
And the replacement string:
, \1);
Working demo