I want to replace statements like these:
identity_LineItemId TEXT(300),
identity_TimeInterval TEXT(300),
bill_InvoiceId TEXT(300),
With these in a large file:
identity_LineItemId=NULLIF(LinkedAccountId, ''),
identity_TimeInterval=NULLIF(LinkedAccountId, ''),
bill_InvoiceId=NULLIF(LinkedAccountId, ''),
bill_BillingEntity=NULLIF(LinkedAccountId, ''),
I tried:
search: .* TEXT(300)
replace with: \1=NULLIF(\1, ''),
But that didn't work.
How can I use a regex replace in notepad++ to replace TEXT(300) with table_name=NULLIF(table_name, ''), ?