Home / Blog Menu ↓

Grepping by Unicode range

TIL that ripgrep supports searching by Unicode ranges. For example:

rg "[\u0250-\u1FFF\u2027-\uFFFF]"

This greps for anything after the Latin Extended-B block, excluding some general punctuation like em/en dashes, curly quotes, and ellipses. (Useful to me for easily checking which characters Iā€™m using on my website and thus what a new font would need to support.)