title: How to replace ereg?
body: <p>I'm getting the following message for some php I have to use but did not write:</p>
  
  <pre><code>Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/webEchange/SiteWeb_V5/inc/html2fpdf.php on line 466
  </code></pre>
  
  <p>This is line 466:</p>
  
  <pre><code>if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3))
  </code></pre>
  
  <p>I tried simply replacing with preg_match, but it couldn't recognize the = modifier in the regular expression.. I'm not too good with regular expression yet and solving this requires that I learn the regexp ereg needs AND the regexp preg_match needs (which, if I am not mistaken, is different)... Could you guys help me out with this one?</p>
  
  <p>Thanks</p>