title: PHP Use preg_replace for replacing word with Double quotes
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13323723/preg-replace-how-surround-html-attributes-for-a-string-with-in-php">preg_replace how surround html attributes for a string with &quot; in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>How to use <code>preg_replace()</code> for change all word that is within <code>&lt;</code> <code>&gt;</code> and after <code>=</code> for word  with double quote surround </p>
  
  <pre><code>$var="&lt;myfootball figure=thin new=aux(comment); &gt; this=Association football &lt; name=football &gt;"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>$var="&lt;myfootball figure="thin"  new="aux(comment);" &gt;this=Association footballl&lt;  name="football"  &gt;"
  </code></pre>
  
  <p>What is the regular expresion for do this with <code>preg_replace()</code>?</p>