(imported comment written by brolly3391)
Ben,
Wow…
Thanks! I had played with using tuples to attack this puzzle but I did not think to use nested
its
with them so I kept getting lists with lots of duplicates or “requires singular expression”
Now, to analyze your code to be sure that I understand:
There are 2 lists generated. The first list is a set of 3 tuples
q: (((it as string & “;;” & name of it & “://”) of values of keys of it, (it & “.”) of names of keys of it, names of it) as string) of ( keys of key “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains” of registry)
A: 2;;http://, www., benkus.com
A: 2;;http://, forum., bigfix.com
A: 4;;http://, www., patchlink.com
and the second is a set of 2 tuples.
q: ((it as string & “;;” & name of it & “://”) of values of it as string, names of it) of ( keys of key “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains” of registry)
A: 4;;http://, altiris.com
A: 2;;https://, benkus.com
Then you use the
;
operator to combine the 2 lists into a single result
q: (((it as string & “;;” & name of it & “://”) of values of keys of it, (it & “.”) of names of keys of it, names of it) as string) of ( keys of key “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains” of registry)
;
((it as string & “;;” & name of it & “://”) of values of it as string, names of it) of ( keys of key “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains” of registry)as string
A: 2;;http://, www., benkus.com
A: 2;;http://, forum., bigfix.com
A: 4;;http://, www., patchlink.com
A: 4;;http://, altiris.com
A: 2;;https://, benkus.com
My, what intersting restricted zones you have.
The rest is just housekeeping, parsing to remove the commas from the tuples and some if thens to decode our 1, 2, 3, and 4 into their text equivalents. I take it that
else nothings
are not quite the same as sweet nothings…
Cheers,
Brolly