Regex
- How I test a regex before putting it into code
Regex is powerful, but it is also easy to get almost right. “Almost right” is the problem. A regex can match too much, too little, or the right thing in your test but the wrong thing in production.
- How I use grep without fighting the flags
grep is the command I use when I know some text exists somewhere, but I do not remember which file contains it. The basic idea is simple: grep "database" app.log Plain meaning: