Build, test, and debug regular expressions
This regex validates ISO 8601 duration strings, which represent time intervals. It matches durations like 'P1Y2M3DT4H5M6S' (1 year, 2 months, 3 days, 4 hours, 5 minutes, 6 seconds) or 'P2W' (2 weeks). Supports decimal values with comma or dot separators for each component.