title: Replacing a string using preg_match
body: <p>I'm having trouble using preg_match to find and replace a string. The string of interest is:</p>
  
  <pre><code>&lt;span style="font-size:0.6em"&gt;EXPIRATION DATE: 04/30/2011&lt;/span&gt;
  </code></pre>
  
  <p>I need to target and replace the date, "04/30/2011" with a different date. Can someone throw me a bone a give me the regular expression to match this pattern using preg_match in PHP? I also need it to match in such a way that it only replaces up to the first closing span and not closing span tags later in the code, e.g.:</p>
  
  <pre><code>&lt;span style="font-size:0.6em"&gt;EXPIRATION DATE: 04/30/2011&lt;/span&gt;&lt;span class="hello"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I'm not versed in regex, and although I've spent the last hour trying to learn enough to make this work, I'm utterly failing. Thanks so much!</p>
  
  <p>EDIT: As you can see this has gotten me exhausted. I did mean preg_replace, not preg_match.</p>