Test, validate and match regular expressions
Matches time duration strings in h/m/s format, such as '1h30m45s', '2h', or '45s'. Each component (digits followed by 'h', 'm', or 's') is an optional non-capturing group, allowing flexible combinations like '10m30s' or '5s'. Commonly used for parsing durations like video lengths, timers, or task elapsed times. Note: since all groups are optional, it also matches empty strings, which may cause unintended matches.