Test, validate and match regular expressions
Matches opening HTML script tags (including any attributes like type or src) and closing </script> tags, case-insensitively across all occurrences. Commonly used to strip script tags from HTML content for sanitization, text extraction, or basic XSS mitigation. Note it only removes the tag markup itself, not the JavaScript code between tags, so it is not a complete security defense on its own.