Vin wrote:

Here is an example of what I'm talking about:

Filename looks like this: MDcameraname20050108124537001A.JPG
I would like the output to look like this: 01/08/2005 12:45:37


preg_match('/MDcameraname([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/', $filename, $m);


$m[1] - year
$m[2] - month
.... etc.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to