Some useful regular expressions for programmers
Four of those were to catch formatting errors. IMHO it's best to just use an automatic code formatter. clang-format is extremely good.<p>When I write code for personal projects I don't even bother trying to format it correctly. The only whitespace button I use is the spacebar. tab is mapped to the function that reformats the entire document according to the formatting rules I've configured.<p>At work, whenever I apply a change in a function I will autoformat that function whenever. I can't just format the entire file, but formatting errors are rife in the codebase I work on.<p>goto fail; is real.