Small snippets of code or other computer related things that I spent too long figuring out.

Notepad++ Copy and Replace

I needed to copy part of a string in the middle of a string and past it in another part of the same string using Notepad++.

In this particular case I was trying to generate color palettes the lazy way; using Notepad++s' find and replace function as it supports regular...