Regular expression to find HTML text script tag’s content and src value

let htmlTEXT = `<h1>page 1</h1>
<input type="text" spellcheck="false" data-ms-editor="true">
<script src="/static/test.js">
    console.log("hello");
    console.log("goodbye");
</script>`

// hopeful regex magic to produce the below
// -> /static/test.js
/* -> 
   console.log("hello");
   console.log("goodbye"); */

I have a string which contains HTML, and I would like two regular expressions to get

  1. the script’s src value
  2. the script’s content