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.

Format dates and years in SAS

How SAS date formats such as YEAR4., YYMMDD10. and MMDDYY10. change what you see without changing the stored value, and when a four-digit year format suits your output.

NLTK word tokenization

How NLTK word tokenization works, what word_tokenize and the Punkt model actually do to your text, how it differs from other NLTK tokenizers, and when the output stops being readable or reversible.

JSON versus JavaScript

Is JSON JavaScript? No. JSON is a data format derived from JavaScript syntax. Learn the rule differences, what conversion changes, and how to keep JSON valid.

Non-greedy regex matching

How non-greedy (lazy) regex quantifiers work, why lazy does not mean shortest match, when negated classes are better, and how portable lazy patterns are.

Representing unknown dates in ISO 8601

How ISO 8601 handles partial, uncertain and unknown dates, what each notation changes, and where it breaks down in parsers, spreadsheets and shared text.

Read and parse a JSON file

How to read and parse a JSON file in Python, JavaScript and the command line, what parsing preserves or discards, and when to keep the raw text instead.

Format ISO 8601 dates in Java

How Java's java.time classes produce ISO 8601 dates, where LocalDateTime falls short, and when a localized format is the better choice.