I have text files that contain
Firstname: xxx
Lastname: yyy
Login: abcd
It has many others entries for other definitions but all in the same format header: data
I would like to use an array in PowerShell to read these and would like to do
$array.firstname
$array.Login
to get me the the data.
Can this be done ?
We currently use a long regex to spit out the data but this is becoming unwieldy and would like to simplify this.