Input
07/12/2001 Jane made 3 pies and stopped after 5 min
08/14/2002 Joe ate 9 apples and started in 20 seconds
08/14/2002 Joe ate 9 apples and started in 20 seconds
output
Date. Name Action Time. units
07/12/2001 Jane. Stopped. 5 min
08/14/2002. joe. Started 20 seconds
I want to create an array which holds a row for each entry above . [Date Name ,Action,Time,units]
adding a row for each line.
I hope I am clear .
Do I use Select-String with my regex code whch matches the items ?
Or is this a job for get-content ?
I am new to powershell and just nailed the regex to get the named captures
Now I just dont know how to stick them into an array as they are matched ..
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.