11 · The Command Line

Regex

Regular expression pattern

A compact pattern language for matching and rewriting text. Powerful, easy to get subtly wrong, and a favorite foot-gun in agent-written parsers.

Concrete example

`^error:\s+(.+)$` matches lines that start with `error:` and captures the rest.

Why it matters

How quick text extraction happens—and how brittle scrapers are born.