// Checks if the string has a <script> tag Checker = new RegExp(`<[^>]*script`).test(`<script>`) console.log(Checker)