How to distinguish between a SHA1 string and a date-time string?
<p>Basically I have two options:</p>

<pre><code>$one = "fdfeb16f096983ada02db49d46a8154475d700ae";
$two = "2011-12-28 05:20:01";
</code></pre>

<p>I need some sort of regex, so that I can detect wether the string follows the pattern in <code>$one</code>, or the pattern in <code>$two</code></p>

<p>Detect if the string is sha1 or datetime.</p>

<p>What would be the best way to determine this?</p>

<p>Thanks</p>
