If it processes text, it speaks regex
Regex isn't a Python feature or a JavaScript feature — it's a 70-year-old idea that almost every text-touching tool has adopted. When you learn it once, you reuse it in dozens of contexts.
Here's a non-exhaustive map of where regex shows up in a normal developer day:
- Editors / IDEs — VS Code, JetBrains, Sublime, Vim, Neovim. Find & Replace, multi-cursor, snippet placeholders.
- Shell tools —
grep,ripgrep (rg),sed,awk,find's-regex. - Programming languages — Python
re, JavaScriptRegExp, Goregexp, Rustregex, Javajava.util.regex, Ruby's built-in syntax, PHP, Perl (regex's spiritual home). - Databases — PostgreSQL
~and~*, MySQLREGEXP, SQLite via REGEXP function, SnowflakeRLIKE. - Web — URL routers (Express, FastAPI, Rails), HTML form
patternattribute, NGINXlocation ~. - Build tools — webpack, Rollup, ESLint
--extmatching,.gitignoreglobs (close cousin), CI path filters. - Security — WAF rules, secret scanners (truffleHog, gitleaks), log SIEM tooling.
Why this matters for how you learn it
Because regex is everywhere, the time you put in pays off across your whole stack. The flavor differs slightly between tools (we'll cover flavors in lesson 5), but the core 80% — character classes, quantifiers, groups, anchors, alternation — works identically in rg, in Python, in your editor, and in Postgres.