开发者

NotePad++ regex find between

开发者 https://www.devze.com 2023-03-13 03:04 出处:网络
I wan\'t to pull out all instances of \"brand\":\"SOMETHING HERE\" in my document where SOMETHING HERE could be any number of things bu开发者_运维百科t its always in the format of the above... how do

I wan't to pull out all instances of "brand":"SOMETHING HERE" in my document where SOMETHING HERE could be any number of things bu开发者_运维百科t its always in the format of the above... how do I do this with NP++


This regex should do it...

"brand":"(.*?)"


Ctrl + F, check 'Regular expression', select 'Replace' tab. In 'find what', type

"brand":"[\S]+"

Leave 'Replace with' empty to remove all instances of "brand":"[one or more non white-space characters]"


   (brand:).*$ 

should work in NP++

0

精彩评论

暂无评论...
验证码 换一张
取 消