如何替换文件中出现的所有具有不同值的字段?

How can i replace all the occurences of a field that has different values in a file?

我想用 null 替换文件中所有出现的字段:

('azerty',  'en',   'TEST', '7',    '1-NOV-15 06.38.21.000000 PM',  'a184086');

在这种情况下,我想用 null 替换 '1-NOV-15 06.38.21.000000 PM'(包括引号),这个序列对我来说是关键:.000000

有什么方法可以用 notepad++ 做到这一点吗?

替换:

'[^']*\.000000[^']*'

与:

null

这将查找单引号,然后是 0+ 个非单引号,然后是 .000000,然后是 0+ 个非单引号,然后是结束单引号。将所有内容替换为 null 即可开始使用。

Demo