Build, test, and debug regular expressions
A word tokenizer that extracts two token types from text: numbers (integers or decimals like '42' or '3.14') via the first alternation, and words including contractions (like 'don't' or 'it's') via the second. With global and case-insensitive flags, it finds all tokens while ignoring whitespace and standalone punctuation. Commonly used for simple NLP preprocessing, lexical analysis, and text parsing in JavaScript.