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.

Match tabs with regex

How to match tab characters with regex: \t versus \s and [[:blank:]], escaping pitfalls in grep and sed, replacing tabs safely, and checking that tabs survive copying.

Hyphens, Dashes, and Underscores

How hyphens, dashes, and underscores differ, what converting between them changes, and when the result stays readable after copying, searching, or sharing.

Generate JSON Schema from Sample JSON

What happens when you convert JSON to JSON Schema from a sample: what a generator can infer, what it gets wrong, and how to check the result before relying on it.

Word tokenization with NLTK and Punkt

What NLTK's word tokenizer and the Punkt sentence model change in your text, how word_tokenize differs from wordpunct_tokenize, and when plain text or another tool fits better.