Build, test, and debug regular expressions
This regex matches text containing a date range separated by either a hyphen (-) or the word 'to' (case-insensitive due to the i flag). It captures the start and end portions in named groups 'start' and 'end' respectively. It's useful for parsing date range strings in various formats without validating specific date formats themselves.