I want replace EVERY space inside EMPTY single quotation marks against the same number of CHR(32).
condition: REGEX has to match only this case - not for cases with signs between single quotation marks!
important hint: the construct, where to replace the spaces between will begin in every case with:
\|\|\s*'
and ends (in every case) with (according to Row 1+2):
'\s*\|\|
I use for search pattern:
'(\s)+'
and for replacement:
CHR\(32\)
But, this replaces all spaces against only ONE CHR(32)!
Following example:
vpl_text := to_char(vpl_text_old) || ' ' ||...;
vpl_text := to_char(vpl_text_old) || '' ||...;
(3)' WHERE a.object_type IN (' 'TABLE'', ''MATerialIZED VIE3W' ') '
(4) WHERE a.object_type IN (' 'TABLE'', ''MATerialIZED VIE3W' ')
my incomplete result:
vpl_text := to_char(vpl_text_old) || CHR(32) ||...;
vpl_text := to_char(vpl_text_old) || '' ||...;
(3)' WHERE a.object_type IN (CHR(32)TABLE'', ''MATerialIZED VIE3WCHR(32)) '
(4) WHERE a.object_type IN (CHR(32)TABLE'', ''MATerialIZED VIE3WCHR(32))
target result:
vpl_text := to_char(vpl_text_old) || CHR(32) || CHR(32) || CHR(32) || CHR(32) ||...;
vpl_text := to_char(vpl_text_old) || '' ||...;
(3)' WHERE a.object_type IN (' 'TABLE'', ''MATerialIZED VIE3W' ') '
(4) WHERE a.object_type IN (' 'TABLE'', ''MATerialIZED VIE3W' ')
Row 3 + 4 has to stay unchanged!
("(3)" and "(4)" are not part of this construct - were only used for explanation!) .
This topic is caused as an alternative for: replace characters in notepad++ BUT exclude characters inside single quotation marks(4th)
How can I define in notepad++ the replacement REGEX correct?