title: regular expression to replace an xml attribute
body: <p>I have an xml file of the form:</p>
  
  <pre><code>&lt;property name="foo" value="this is a long value"&gt;stuff&lt;/property&gt;
  </code></pre>
  
  <p>There are many properties but I want to match the one with name foo and then replace its value attribute with something else as so:</p>
  
  <pre><code>&lt;property name="foo" value="yet another long value"&gt;stuff&lt;/property&gt;
  </code></pre>
  
  <p>I was thinking to write a regular expression to match everything after "foo" to the end of the tag ( ">" ) and replace that, but I can't seem to get the syntax right. </p>
  
  <p>I'm trying to do this using sed, if that's any help.</p>