Hi
This is properly a simple question. Im trying to remove some question marks from a string, the data is this:
The system has resumed from sleep.
Sleep Time: ?2013?-?11?-?23T07:11:08.138616700Z
Wake Time: ?2013?-?11?-?23T10:08:19.433110600Z
Wake Source: Power Button
But when i run this:
$data -replace "(\?)|(\..*Z)","" -replace "(?<=[0-9])T"," "
The system has resumed from sleep.
Sleep Time: ?2013?-?11?-?23 07:11:08
Wake Time: ?2013?-?11?-?23 10:08:19
Wake Source: Power Button
I have tried the regex on http://gskinner.com/RegExr/ and there it works. Any ideas?