Substring search done right
SQLite gives you three pattern operators:
LIKE 'pat%'— SQL standard.%= any string,_= single char. Case-insensitive for ASCII A–Z by default; Unicode-case-sensitive unless you load ICU.GLOB 'pat*'— Unix-style.*= any string,?= single char,[abc]= char class. Always case-sensitive. Faster than LIKE for prefix matches.REGEXP 'pat'— only available if your build loads a regex extension (Pippa's does viasqlite3_extension_init; the default macOS/Linux CLI does not).
Tip: For real text search — substring across many rows, ranking, language tokenization — none of these are the right tool. You want FTS5 (covered in track 8). LIKE is fine for
WHERE name LIKE 'al%' on a small table; it falls over at scale.