title: PHP Convert Full Date To Short Date
body: <p>I need a PHP script to loop through all .html files in a directory and in each one find the first instance of a long date (i.e. <code>August 25th, 2014</code>) and then adds a tag with that date in short format (i.e. <code>&lt;p class="date"&gt;08/25/14&lt;/p&gt;</code>).</p>
  
  <p>Has anyone done something like this before? I'm guessing you'd explode the string and use a complex case statement to convert the month names and days to regular numbers and then implode using <code>/</code>.</p>
  
  <p>But I'm having trouble figuring out the regular expression to use for finding the first long date.</p>
  
  <p>Any help or advice would be greatly appreciated! </p>