rblog

Find text between double brackets using regex

Just needed to post this one as a reminder to myself. Once in a while I need to update text between double brackets, often values of parameters like the case now

password="thepassword"
...
password="yetanotherpassoword"

Having a lot of this makes it annoying to update it manually, but by using Notepad++ which also have a regex-search-replace option it is easy

password=".*"

did the trick for me.