title: How to match a substring surrounded by known prefix and suffix in javascript
body: <p>Given a string, such as:</p>
  
  <blockquote>
    <p>example string with an intended nested string to match.</p>
  </blockquote>
  
  <p>How to isolate a substring knowing only a prefix and suffix for it, e.g. between <code>intended</code> and <code>to match</code>?</p>