查找和替换“和”之间的字符

时间:2018-12-07 11:45:33

标签: replace notepad++

我需要替换" "之间的所有重复

即:这是实际的字符串

"vis": "<aaaaaaaaaaaa>" ( a could be letter or number or <,>,| )

我想替换所有重复出现的

"vis": "1" 

使用Notepad ++可以吗?

谢谢

1 个答案:

答案 0 :(得分:0)

  • Ctrl + H
  • 查找内容::\h+"\K[^"]+
  • 替换为:1
  • 检查环绕
  • 检查正则表达式
  • 全部替换

说明:

:\h+"       # colon, horizontal spaces, double quote
\K          # forget all we have seen until this position
[^"]+       # 1 or more any character that is not double quote
                you may use [a-zA-Z0-0<>|]+ if you want to be more restrictive