Replace regular-expression matches with text or a capture-aware function.
Matches are found and replacement text or a callback builds the output; tokens such as $1 insert captured groups. Global mode replaces every non-overlapping match, while default mode replaces the first.
Date: 2024-01-15 and 2024-12-31
: -- --
Migrations, formatters, and log scrubbers replace matched text.