Basically I have two options:
$one = "fdfeb16f096983ada02db49d46a8154475d700ae";
$two = "2011-12-28 05:20:01";
I need some sort of regex, so that I can detect wether the string follows the pattern in $one
, or the pattern in $two
Detect if the string is sha1 or datetime.
What would be the best way to determine this?
Thanks