Test, validate and match regular expressions
This regular expression matches time durations expressed in years, months, weeks, or days, capturing both the numerical value and the corresponding unit of time. It is commonly used to extract domain age information or validate duration formats from textual data. The case-insensitive flag allows it to match variations like 'Years' or 'DAYS'.