title: How can I extract text from the middle of a string with Javascript?
body: <p>I have these strings:</p>
  
  <pre><code>baseUrl = "http://www.example.com"
  baseUrl = "https://secure.example-server.com:443"
  </code></pre>
  
  <p>Can someone tell me how I can extract the server information from baseUrl so I can get either "example" and "example-server"</p>