Test, validate and match regular expressions
Matches a complete HTML <div> element whose 5-character attribute name (e.g., 'class') has a value starting with 'print', including the opening tag, all inner content (even spanning newlines via [\s\S]), and the closing </div> tag. The lazy quantifiers ensure the shortest possible match up to the first closing div. Typically used to strip print-only sections or print-related containers from HTML documents, with the global flag removing all occurrences at once.