Test, validate and match regular expressions
Matches URL paths ending with 'product/' followed by two numeric segments, such as 'product/123/456'. The multiline flag makes '$' anchor to the end of each line, allowing validation across multiple lines of input, while the global flag finds all occurrences. Commonly used for validating product detail routes or extracting product ID/sKU pairs from URLs in web applications and log parsing.