find what: ^"(.*[^"])".*,$
replace with: create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("\1");
regexp: enabled
match case: enabled
allow backslash: enabled
Only half of row count were replaced, the rest lost and the replaced string is also different than it should be.
EXAMPLE from the output:
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("CICA_BI_CURSOR" DATE,
");
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("D_SECONDARYPOLICYNUMBER" VARCHAR2(90 CHAR),
");
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("D_SOURCEPRODUCTCLASS" VARCHAR2(90 CHAR),
");
The CORRECT output should be:
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("CICA_BI_CURSOR");
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("D_POLICYNUMBER");
create index hr_pvzp_policy_idx_1 on hr.pvzp_policy ("D_SECONDARYPOLICYNUMBER");
Regexp matching works not correcty:
Test case step by step:
I opened some existing files.
I created a new tab.
I pasted the following text
Started replace all with the following settings
Only half of row count were replaced, the rest lost and the replaced string is also different than it should be. EXAMPLE from the output:
The CORRECT output should be: