PowerShell beginner here, I have been going round in circles with this for a few hours and getting nowhere.
I have a large CSV file, multiple rows/columns, but for my issue I am only concerned with three
In column one I have a list of parent items.
In column two I have a list of child items.
In column three is a party responsible for each parent item
An item can be both a parent and a child but not of itself, a parent may not have any children.
I am trying to find the responsible party for both my selected parents and all of their children.
I have a regular expression to match the parent items I am concerned with and am able to retrieve and split the child items into an array which reads.
Parent
Child
Child
Parent
Child
…
I am struggling to search the CSV column one for the list of items in my array and return the contents of column three the responsible party on match. I feel like this should be straight forward enough but I have just hit a wall.
Thanks Rob, after taking a look through your examples and running them myself I found where I was going wrong and got to where I needed to be, appreciate the help.