I have a string variable that holds the following information
I am using this variable for a cmdlet that only accepts data in the format of
I have tried TrimStart("@{EmailAddress=") but this only removes @{EmailAddress= for the first user and I guess TrimEnd would not be much use as I presume that it is due to the fact it reading the string as one line and not as user1,user2 etc.
Would anyone be able to provide advice on how to remove these unwanted characters.
