Blog

Guides to working with text

Practical guides to reversing text, Unicode characters, cleanup, counting and common encodings. Each guide explains a real task, shows an example and links to a tool you can try.

Bash: Check If a String Matches a Regex

How to test a string against a regular expression in Bash with [[ =~ ]], what BASH_REMATCH captures, common quoting pitfalls, portable alternatives, and Unicode caveats.