Test, validate and match regular expressions
Matches HTML script tags, including complete blocks with content (<script>...</script>) as well as standalone opening, closing, or self-closing tags. It tolerates flexible whitespace and optional forward slashes around the tag name (e.g., < script > or <script/>). Useful for sanitizing HTML input, stripping JavaScript from content, or detecting inline scripts during security analysis such as XSS prevention.