29. Regex and glob

[!ref] Full details in the User Manual, "Smart-coding tools".

29.1 Filename glob

Literal Meaning
* Any chars (not crossing /)
** Any number of directories
? One char
[abc] Char class
[!abc] Negated class
{a,b,c} Alternation

Examples:

Pattern Intent
**/*.go All Go files
src/**/*test*.{ts,tsx} TS / TSX containing "test" under src
[Mm]akefile Makefile / makefile

29.2 Content search (RE2)

Metachar Meaning
. Any one char (not newline)
\d \w \s Digit / word / whitespace
^ $ Start / end of line
\b Word boundary
(?i) Inline case-insensitive
(...) Capture group
(?:...) Non-capture group
+ * ? Quantifiers
{n,m} Repeat n–m

No back-references \1 or PCRE-style look-behinds (?<=…).