Test, validate and match regular expressions
Parses the viewBox attribute from an SVG opening tag, capturing the four numeric values (min-x, min-y, width, height) in separate groups. Each number supports optional negative signs, decimals (e.g. 12, 3.5, .5), and scientific notation like 1e3. The case-insensitive and dotall flags allow matching regardless of tag case or when attributes span multiple lines. Useful for extracting SVG viewport dimensions during document processing, resizing, or validation.