PowerShell - Regex for: year, month, day, hours and minutes
I currently have a String with a datetime e.g. 2013-05-09 12:13:14.000
I want to regex this to split it into seperate Year, Month, Day, Hours and
Minutes variables.
$mCase = "\d{2}/\d{2}/\d{4}"
$tempYear = $test.column1
$year = $tempYear -replace $mCase
This is my first powershell script so apologies in advance if i'm being a
noob
No comments:
Post a Comment