Tony
Tony

Reputation: 9581

NotePad++ regex find between

I wan't to pull out all instances of "brand":"SOMETHING HERE" in my document where SOMETHING HERE could be any number of things but its always in the format of the above... how do I do this with NP++

Upvotes: 2

Views: 9134

Answers (3)

AR.
AR.

Reputation: 1955

   (brand:).*$ 

should work in NP++

Upvotes: -1

hoipolloi
hoipolloi

Reputation: 8044

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]"

Upvotes: 1

alex
alex

Reputation: 490273

This regex should do it...

"brand":"(.*?)"

Upvotes: 4

Related Questions