【发布时间】:2015-09-02 08:00:12
【问题描述】:
在
replace characters in notepad++ BUT exclude characters inside single quotation marks(2nd)
"Jonny 5" 解决了这个问题 - 但是 - 如果我有这样的构造:
SELECT column_name FROM table_name WHERE column_name IN ('A' , 'st9u' ,'Meyer', ....);
WHERE a.object_type IN (' 'TABLE'', ''MATerialIZED VIE3W' ')
vpl_text := IS_GOING_SMALL_CORRECT
(1) vpl_text := TO_CHAR(vpl_text_old) || ' ' ||...;
-- ------
vpl_text := STAYS_UPPER_ERROR
(2) vpl_text := TO_CHAR(vpl_text_old) || '' ||...;
-- ------
vpl_text := IS_GOING_SMALL_CORRECT
那么目标应该是:
select column_name from table_name where column_name in ('A' , 'st9u' ,'Meyer', ....);
where a.object_type in (' 'TABLE'', ''MATerialIZED VIE3W' ')
vpl_text := is_going_small_correct
(1) vpl_text := to_char(vpl_text_old) || ' ' ||...;
-- ------
vpl_text := stays_upper_error
(2) vpl_text := to_char(vpl_text_old) || '' ||...;
-- ------
vpl_text := is_going_small_correct
但是结果是(其余的都ok.!):
:
-- ------
vpl_text := STAYS_UPPER_ERROR
(2) vpl_text := TO_CHAR(vpl_text_old) || '' ||...;
-- ------
:
条件:(同) replace characters in notepad++ BUT exclude characters inside single quotation marks(2nd)
如果我交换第 (1) 和 (2) 行,也会发生这种情况!
如何在 notepad++ 中更改此正则表达式,将所有大写符号更改为小写符号 - 排除在单引号内?
【问题讨论】:
标签: regex notepad++ regex-lookarounds