回复 14# bailong360
感谢,可以了。
不过还有点小问题。十六进制显示的注册表键值它的键值不在一行中。替换后只替换了第一行,而没有把后续的内容删除。例如- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\lan\LanguageModel\it]
- "Resource1"=hex(2):58,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
- 5c,00,53,00,4b,00,42,00,5c,00,4c,00,61,00,6e,00,67,00,75,00,61,00,67,00,65,\
- 00,4d,00,6f,00,64,00,65,00,6c,00,73,00,5c,00,6c,00,6d,00,2e,00,69,00,74,00,\
- 2d,00,67,00,72,00,61,00,6d,00,6d,00,61,00,72,00,2e,00,64,00,61,00,74,00,00,\
- 00
复制代码 正确的替换应该是- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\lan\LanguageModel\it]
- "Resource1"=-
复制代码 而运行正则后的替换结果是- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\lan\LanguageModel\it]
- "Resource1"=-
- 5c,00,53,00,4b,00,42,00,5c,00,4c,00,61,00,6e,00,67,00,75,00,61,00,67,00,65,\
- 00,4d,00,6f,00,64,00,65,00,6c,00,73,00,5c,00,6c,00,6d,00,2e,00,69,00,74,00,\
- 2d,00,67,00,72,00,61,00,6d,00,6d,00,61,00,72,00,2e,00,64,00,61,00,74,00,00,\
- 00
复制代码 当然这个问题如果不好解决就算了。 |