Build, test, and debug regular expressions
Parses HTTP User-Agent strings via two alternatives: it captures parenthesized system/device details (e.g., 'Windows NT 10.0; Win64; x64') into the 'info' group, or matches product tokens like 'Mozilla/5.0' capturing 'name' and 'version' separately. Lazy quantifiers plus whitespace/end-of-line boundaries let it extract each segment from strings like 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36'. Commonly used for web analytics, log parsing, and browser/OS detection.