Build, test, and debug regular expressions
This regex matches a numeric quantity followed by a time unit (days, weeks, or hours), with an optional space, and captures any trailing text. It is useful for extracting time periods from sentences or logs, such as '2 days' or '3weeks'. The trailing capture group allows capturing context after the duration, making it suitable for parsing user input or structured text.