Question:
Answer:
Okay, I’m assuming that the data is stored in a variable called $values and is an array where each entry of the array is an individual line, the following should extract your values as requested:$values | % { [regex]::match( $_ , “(?<=')(.+)(?=')" ) } | Select -ExpandProperty Value [/code]
If $values is just a string containing the data, you can use the following instead:[regex]::matches($values, “(?<=')(.+)(?=')" ) | Select -ExpandProperty Value [/code]
If you have better answer, please add a comment about this, thank you!