replace characters in notepad++ BUT exclude characters inside single quotation marks
Sorry to all users (especially to Avinash Raj) who answered already 1st similiar question - I did simply forget the 2nd kind of string.
(And (that is the sad thing) - I'm not able to adjust the solution from 1st similiar question to the 2nd kind of string...)
I have TWO different strings in this kind:
SELECT column_name FROM table_name WHERE column_name IN ('A' , 'st9u' ,'Meyer', ....);
WHERE a.object_type IN (' 'TABLE'', ''MATEerialIZED VIE3W' ')
I want replace all characters in notepad++ from upper to lower, BUT exclude from replacement characters inside
single quotation marks.
condition: It exists no solid structure before/behind/between the single quotation marks part!
(That means - I can not use the
keyword "IN" or signs like "," or "(" or ")" or ";" for this regex
...!)
The once thing is, that two structures for single quotation marks are possible:
'Word|Number' or ''Word|Number''
(but, as shown in 2nd example, with different number of spaces between every single quotation mark!).
target string (the characters inside single quotation marks have to stay unchangend):
select column_name from table_name where column_name in ('A' , 'st9u' ,'Meyer', ....);
where a.object_type in (' 'TABLE'', ''MATerialIZED VIE3W' ')
How can I exclude in notepad++ the single quotation marks part (from replacement)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…