So if you don't know wether or not the milliseconds have a decimal part or not you could do :
/^(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+(?:\.\d+)?)$/
$6 will then hold the ms, with or without the optional decimal part.
In reply to Re^3: regex not working
by ZlR
in thread regex not working
by gwhite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |