I need to extract Data from a single line of json-data which is inbetween two variables (Powershell)
my Variables: in front of Data: DeviceAddresses":[{"Id": after Data: ,"
I tried this, but there needs to be some error because of all the special characters I'm using:
$devicepattern = {DeviceAddresses":[{"Id":{.*?},"}
#$deviceid = [regex]::match($changeduserdata, $devicepattern).Groups[1].Value
#$deviceid