title: How can I match a string with brackets and apostrophes in sed?
body: <p>I am trying to match and replace the following string:</p>
  
  <pre><code>&lt;%=  host_env %&gt;&lt;%= host_tenant_id %&gt;.&lt;%= domain_name %&gt;/&lt;%= products['as']['server_context_worker']  %&gt;
  </code></pre>
  
  <p>Any ideas?  I've tried:</p>
  
  <pre><code>&lt;%=  host_env %&gt;&lt;%= host_tenant_id %&gt;\.&lt;%= domain_name %&gt;\/&lt;%= products\['as'\]\['server_context_worker'\]  %&gt;
  </code></pre>
  
  <p>and lot's of variations of it, but I haven't had any success.</p>