us_to_iso(text) converting every MM/DD/YYYY date in a document to YYYY-MM-DD using one re.sub with numbered group backreferences — the capture groups reorder themselves in the replacement string.us_to_iso('due 07/28/2026 and 12/01/2026')'due 2026-07-28 and 2026-12-01'
Groups are re-emitted in ISO order.
Pattern: (\d{2})/(\d{2})/(\d{4}).
Replacement: r'\3-\1-\2'.