title: Sed replace error
body: <p>I have a pattern I am trying to match:</p>
  
  <pre><code>&lt;x&gt;anything&lt;/x&gt;
  </code></pre>
  
  <p>I am trying to replace 'anything' (which can be any text, not the text anything - (.*)) with 'something' so any occurrences would become:</p>
  
  <pre><code>&lt;x&gt;something&lt;/x&gt;
  </code></pre>
  
  <p>I am trying to use the following sed command:</p>
  
  <pre><code>sed "s/&lt;x&gt;.*&lt;/x&gt;/&lt;x&gt;something&lt;/x&gt;/g" file  
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>sed: -e expression #1, char 19: unknown option to `s'
  </code></pre>
  
  <p>Can someone point me in the right direction?</p>