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.

Date Format in Salesforce

How Salesforce decides which date format to show, which text formats it expects in imports, SOQL, formulas and Apex, and how to convert extracted dates safely.

How to print an apostrophe with awk

Why an apostrophe breaks an awk one-liner, and reliable ways to print one: the \047 octal escape, a -v variable, shell quote splicing, a script file or printf.

Validate Angular forms with regular expressions

How Angular's pattern validator checks form input with regular expressions, where it fits, how string and RegExp patterns differ, and the Unicode, paste and accessibility limits to plan for.

Load a local CSV file in D3

How to load a local CSV file in D3: why opening the page from disk fails, how to use a local server or a file picker, and what parsing changes in your data.

10 minutes to 11 on a clock

Ten minutes to 11 is 10:50, or 22:50 in the evening on a 24-hour clock. How to convert analogue readings to digital time and keep the result usable.